1

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

2
  • You have looked at the exec java plugin of what? In which system does the command line have plugins? Commented 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. Commented Sep 5, 2011 at 7:47

1 Answer 1

3

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.

Sign up to request clarification or add additional context in comments.

1 Comment

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.