I'm writing a maven plugin which has to initialize another java project with specific VM arguments. according to the exec:java, they only take in arguments but not VMarguments, so my question is how to launch a java project with specific VMarguments from the command line? thanks
-
You have looked at the exec java plugin of what? In which system does the command line have plugins?JB Nizet– JB Nizet2011-09-05 07:41:03 +00:00Commented Sep 5, 2011 at 7:41
-
Judging from the mention of the exec plugin and the OP's previous questions, he probably wants to execute a java program from Maven.Péter Török– Péter Török2011-09-05 07:47:29 +00:00Commented Sep 5, 2011 at 7:47
Add a comment
|
1 Answer
You can't supply extra VM arguments if you use Maven's exec:java plugin because it runs in the same VM (i.e. it's already been initialized). You'll need to use exec:exec, and construct the java command line yourself.
1 Comment
Brett Porter
mojo.codehaus.org/exec-maven-plugin/examples/… has specific instructions