Adding JVM args AND jacoco-maven-plugin? -
just wanted know if it's usefull start jacoco agent using maven plugin , add arguments surefire ? start jacoco twice ?
example :
<plugin> <groupid>org.jacoco</groupid> <artifactid>jacoco-maven-plugin</artifactid> <version>${jacoco.version}</version> <executions> <execution> <phase>pre-integration-test</phase> <goals> <goal>prepare-agent</goal> </goals> </execution> </executions> </plugin> and
<plugin> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-surefire-plugin</artifactid> <configuration> <argline>-javaagent:${sonar.jacoco.jar}=destfile='${sonar.jacoco.reportpath}'</argline>
they provide maven usage example, seems additional arguments surefire not needed.
Comments
Post a Comment