Hey there.
You would need to make sure that these files are indexed by the Maven scanner.
You can update <sonar.sources> in your pom.xml to include other directories (it defaults to src/main/java). You can include multiple, comma separated directories.
<sonar.sources>
src/main/java