Hello,
As previously announced in Feb 2024, we have been working on a feature to allow Maven users to scan more files from their projects with less manual configuration.
This feature is now available with the SonarScanner for Maven 3.11.3922 for SonarQube and SonarCloud users.
Given that this is a major change in the behavior of the Scanner for Maven, we decided to make it as an opt-in feature. In order to scan more files than just the Java and Kotlin ones (think about your Dockerfile and IaC files, …), you need to give the scan this extra parameter (more details in the documentation):
sonar.maven.scanAll=true
Also, in order to fully benefit from this feature, you will have to remove any custom configuration you did in the past related to sonar.sources
and sonar.inclusions
.
Before making it the default behavior, we need your feedback. Please do not hesitate to get in touch with us if you experience trouble while playing with this new parameter.
Enjoy!
Alex