<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<forkCount>1</forkCount>
<runOrder>random</runOrder>
<argLine>@{argLine}
-javaagent:"${settings.localRepository}"/org/jmockit/jmockit/${jmockit.version}/jmockit-${jmockit.version}.jar
</argLine>
</configuration>
</plugin>--
You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jacoco+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/c7b4f84b-9bb3-411f-b16c-c71736ea15a7%40googlegroups.com.
Hi,have you tried to run the exact same code without @{argLine}?The quotes within the arguments of the JMockit agent look suspicious to me. I’m not sure whether the JVM can handle this.Please run your Maven build in debug mode (-X option) and check how the effective command line looks like.Regards,-marc
On 19. Sep 2019, at 16:02, eric....@gmail.com wrote:
I am trying to get Jacoco to play nice with jMockit. The issue is that jmockit requires that the javaagent to be modified like:<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<forkCount>1</forkCount>
<runOrder>random</runOrder>
<argLine>@{argLine}
-javaagent:"${settings.localRepository}"/org/jmockit/jmockit/${jmockit.version}/jmockit-${jmockit.version}.jar
</argLine>
</configuration>
</plugin>unfortunately adding the @{argLine} removes the -javaagent line required by jmockit. I have also tried using ${argLine} as a property but the same thing happens. Is there a way for the Jacoco -javaagent line to include my jmockit requirements as well?Thank you!--
You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jac...@googlegroups.com.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<forkCount>1</forkCount>
<runOrder>random</runOrder>
<argLine>@{argLine}
-javaagent:"${settings.localRepository}"/org/jmockit/jmockit/${jmockit.version}/jmockit-${jmockit.version}.jar
</argLine>
</configuration>
</plugin>
To unsubscribe from this group and stop receiving emails from it, send an email to jacoco+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/6641c54e-5695-4119-8139-7c985ef0d0f9%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to jacoco+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/fdef9118-35e7-47e4-bf31-f422bf541dfd%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/fdef9118-35e7-47e4-bf31-f422bf541dfd%40googlegroups.com.