How to control VM arguments for maven-jetty-plugin?

后端 未结 9 2233
鱼传尺愫
鱼传尺愫 2020-11-29 23:04

How to set VM arguments for Jetty run from maven-jetty-plugin?

For example, I need to pass -Xmx arguments to Jetty run by the mvn jetty:run

9条回答
  •  猫巷女王i
    2020-11-29 23:18

    With more recent versions of the maven-jetty-plugin, you can use mvn:run-forked. The option jvmArgs will allow you to set -Xmx etc.

    For more information, see: jetty:run-forked : Running an unassembled webapp in a separate jvm.

    I think the original issue was Starting Jetty in separate JVM.

提交回复
热议问题