2

I have a few Maven projects with packaging equal to JAR (example: EasyBundle). Unfortunately I cannot see Java Properties Plugin Quality Profile at project dashboard after analysis:

EasyBundle dashboard

My project contains *.properties files in src/test/resources (see sources). How can I activate Java Properties Plugin during the Maven JAR project analysis?

agabrys
  • 8,728
  • 3
  • 35
  • 73

1 Answers1

0

By default the SonarQube Maven plugin will only index what Maven consider as source folders (ie src/main/java and src/test/java for a JAR project).

If you want to have files in src/test/resources indexed you have to override default configuration either on command line or in your pom.xml.

Try: mvn sonar:sonar -Dsonar.tests=src/test

Or add:

<properties>
  <sonar.tests>src/test</sonar.tests>
</properties>

in your pom.xml