I believe Maven analysis is going to pick up only Java sources automatically & by default. If you need it to pick up something from resources, then I think you’ll need to override the sonar.sources value to include both subdirectories.
The maven scanner also picks up other - non java - sources. We have projects that contain a
/src/main/webapp
directory, beside the Java code.
The scanner by default finds all CSS, HTML and JavaScript and analyzes it.
That’s why I wondered why *.sql is not taken into account.
I will try and add the “sources” parameter.
But it would be great if you could find out with your team, why some source-types (Java, HTML, CSS) are picked up by default and *.sql not.
Maven analysis doesn’t pick up src/resources because we rely on Maven to give us the project configuration. So when we say “Hey Maven, where are the source files?” Maven only gives us Java files by default.
Don’t hijack threads two years old, better create a new one
When using the latest version of the sonar-maven plugin = 3.10 the default sources include
is src/main, means src/main/resources should also automatically be included.