Forking with mvn exec:java

Guillaume Drouet guidrouet at gmail.com
Mon Jul 28 19:33:19 UTC 2014


It works perfectly.

Thanks for you support. I really appreciate your quick and effective
response. It gives a real additional value to JMH which is already a great
project even without this!

Bye


2014-07-28 18:05 GMT+02:00 Aleksey Shipilev <aleksey.shipilev at oracle.com>:

> 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.
>
>


-- 
Guillaume DROUET


More information about the jmh-dev mailing list