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

后端 未结 9 2230
鱼传尺愫
鱼传尺愫 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条回答
  •  孤独总比滥情好
    2020-11-29 23:35

    The param mentioned here : Maven jetty plugin didn't work for me .

    Maven version : Apache Maven 3.0.3

    Jetty Maven plugin version : jetty-maven-plugin:8.1.10.v20130312

    This worked :

    MAVEN_OPTS='-Xmx4096m -Xms4096m'
    export MAVEN_OPTS
    mvn jetty:run &
    

提交回复
热议问题