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

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -