Created
March 27, 2012 04:02
-
-
Save xseignard/2212435 to your computer and use it in GitHub Desktop.
Quality analysis with jacoco and sonar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<profile> | |
<id>quality</id> | |
<activation> | |
<activeByDefault>true</activeByDefault> | |
</activation> | |
<properties> | |
<!-- Jacoco version --> | |
<jacoco.version>0.5.6.201201232323</jacoco.version> | |
<!-- Sonar properties --> | |
<sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin> | |
<sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis> | |
<!-- Points to the target folder of the global parent project --> | |
<sonar.jacoco.reportPath>../../target/jacoco.exec</sonar.jacoco.reportPath> | |
</properties> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.jacoco</groupId> | |
<artifactId>jacoco-maven-plugin</artifactId> | |
<version>${jacoco.version}</version> | |
<executions> | |
<execution> | |
<goals> | |
<goal>prepare-agent</goal> | |
</goals> | |
<configuration> | |
<append>true</append> | |
<destFile>${sonar.jacoco.reportPath}</destFile> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> | |
</profile> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment