How to specify JVM argument for Maven built executable JAR

前端 未结 5 1966
梦谈多话
梦谈多话 2020-12-19 06:16

When using Maven to build an executable JAR, how do I specify the JVM arguments that are used when the JAR is executed?

I can specify the main class using <

5条回答
  •  温柔的废话
    2020-12-19 07:01

    Ancient question but came up on my Google search for this exact problem so I'm answering it.

    Try

    
    ...
     -Xmx500m 
    ...
    
    

提交回复
热议问题