What I am trying to achieve is integrate SonarQube analysis into the build process, so that whenever mvn clean install
is run, the code is analyzed with SonarQu
IMO, this is just a Maven configuration issue, you're missing the <inherited>false</inherited>
element on the execution of sonar:sonar
:
<!-- Run sonar analysis (preview mode) during verify phase. Cobertura reports need to be generated already -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<version>2.5</version>
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>sonar</goal>
</goals>
<inherited>false</inherited>
</execution>
</executions>
</plugin>