Forking with mvn exec:java

Aleksey Shipilev aleksey.shipilev at oracle.com
Mon Jul 28 16:05:02 UTC 2014


Hi,

On 07/28/2014 01:06 AM, Guillaume Drouet wrote:
> My command line: mvn clean install exec:java

So the trick seems to be to invoke the new Java process with exec:exec,
not trying to do this with exec:java, which tries to "inject" project
classpath dependencies into current process.

This works with "mvn clean install exec:exec":
  http://cr.openjdk.java.net/~shade/jmh/exec-exec/
  http://cr.openjdk.java.net/~shade/jmh/exec-exec/pom.xml

-Aleksey.



More information about the jmh-dev mailing list