I am trying to run a sonar maven analysis on my multilanguage project which contains many languages like *.java, *.groovy, *.js etc. I have installed all the languages plugin in my sonar and configured my pom sonar.sources
parameter as src/main,src/test
but still it picks up only java files. In the console output.
I get the following lines in the console indicating that it only scans the folders with pattern src/main/java
and src/test/java
[INFO] [05:13:57.140] ------------- Scan myapp
[INFO] [05:13:57.140] Load module settings
[INFO] [05:13:57.187] Initializer FindbugsMavenInitializer
[INFO] [05:13:57.187] Initializer FindbugsMavenInitializer (done) | time=0ms
[INFO] [05:13:57.187] Base dir: C:\myapp
[INFO] [05:13:57.187] Working dir: C:\myapp\target\sonar
[INFO] [05:13:57.187] Source paths: pom.xml, src/main/java
[INFO] [05:13:57.187] Test paths: src/test/java
I am currently using SonarQube 5.1, Java 7u80
Note: If analysis is done using Sonar Runner, It scans all the files.
Since it was a multi module project, I had to include the properties
sonar.sources
andsonar.tests
in the parent module'spom.xml
file.sonar.tests
parameter is empty since it is incompatible with Maven.