How to run a java project with vm arguments from command line?

后端 未结 1 1538
萌比男神i
萌比男神i 2021-01-23 12:32

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,

1条回答
  •  孤独总比滥情好
    2021-01-23 12:46

    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.

    0 讨论(0)
提交回复
热议问题