Skip to content

Instantly share code, notes, and snippets.

@framiere
Forked from anonymous/gist:5372167
Created April 12, 2013 14:04
Show Gist options
  • Save framiere/5372236 to your computer and use it in GitHub Desktop.
Save framiere/5372236 to your computer and use it in GitHub Desktop.
<!--Ajouter la property-->
<sonar.jacoco.itReportPath>${project.build.directory}/jacoco-it.exec</sonar.jacoco.itReportPath>
<!-- Ajout du plugin jacoco et configuration de l'agent -->
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.6.2.201302030002</version>
<configuration>
<propertyName>jacoco.agent.argLine</propertyName>
<destFile>${sonar.jacoco.itReportPath}</destFile>
<append>true</append>
</configuration>
<executions>
<execution>
<id>agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Ajout de la conf de l'agent dans surefire -->
<argLine>${jacoco.agent.argLine}</argLine>
<!-- Remplacement de la conf de failsafe -->
<argLine>-Xmx512m -XX:MaxPermSize=256m ${jacoco.agent.argLine}</argLine>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment