Try Maven Invoker plugin ( http://maven.apache.org/plugins/maven-invoker-plugin/run-mojo.html). It has javaHome parameter for forked invocations.
Regards, htfv (Aliaksei Lahachou) On Wed, Jun 27, 2012 at 6:28 PM, Bodhayan Chakraborty <[email protected]>wrote: > Hi, > > I want to execute a maven plugin with a defined JDK irrespective of the JDK > that invoked the "mvn" command. I have developed a plugin which invokes a > API. That API can run only in 32 bit java. The goal for that plugin is > "store:store". So, if I execute "mvn clean compile deploy store:store", the > "clean", "compile" and "deploy" goals should run in the same JVM which > invoked the "mvn" command. But, the "store:store" should run in a different > JVM. Is that possible? > > Thanks in advance. > > Bodhayan. >
