> I was doing the following:
>
> mvn clean install -DskipTests
> mvn sonar:sonar
And the problems happens at mvn sonar:sonar? In this case please report
this issue directly at Sonar. The Sonar plug-in is not maintained here
by the JaCoCo project.
JaCoCo's prepare-agent goal does not work with tmp files, it directly
references the agent as a Maven artifact in the local repo.
Best regards,
-marc
On 21.06.13 20:25, mpc755 wrote:
> Hi Marc,
>
> It's maven.
>
> I was doing the following:
>
> mvn clean install -DskipTests
> mvn sonar:sonar
>
> I'm able to get around the issue by doing the following:
>
> mvn clean
> install -Djavaagent="-javaagent:/var/lib/jenkins/jacoco/lib/jacocoagent.jar=destfile=target/jacoco.exec,excludes=*_javassist_*"
> -Dmaven.test.failure.ignore=true
>
> Where pom.xml is modified to:
>
> <properties>
> <javaagent></javaagent> <!-- defined on 'mvn clean install' command
> for code coverage -->
> </properties>
>
> <artifactId>maven-surefire-plugin</artifactId>
> ...
> <argLine>${javaagent}</argLine>
>
>
> mvn sonar:sonar *-Dsonar.dynamicAnalysis=reuseReports*