<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.2</version> <!-- or some other version -->
<configuration>
<argLine>
-javaagent:"${settings.localRepository}"/org/jmockit/jmockit/${jmockit.version}/jmockit-${jmockit.version}.jar
</argLine>
</configuration>
</plugin>
</plugins>
The reference to ${settings.localrepository} is not expanded and the minion fails to find the JMockit jar
One solution might be to inject the Settings parameter into the Mojo and search for references for each of the properties. Not as elegant as iterating through properties but perhaps we only need the localRepository property anyway
https://github.com/hcoles/pitest/blob/dd84e8bad21e410b91c83674243079832935bc03/pitest-maven/src/main/java/org/pitest/maven/MojoToReportOptionsConverter.java#L490
When setting up JMockit as referenced here https://jmockit.github.io/tutorial/Introduction.html#maven
The reference to
${settings.localrepository}
is not expanded and the minion fails to find the JMockit jarOne solution might be to inject the
Settings
parameter into the Mojo and search for references for each of the properties. Not as elegant as iterating through properties but perhaps we only need thelocalRepository
property anyway