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

后端 未结 9 2214
鱼传尺愫
鱼传尺愫 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:41

    The plugin allows you to specify jvmArgs like this:

    
    org.mortbay.jetty
    jetty-maven-plugin
    
        -Xmx1024
        10
        
            
                8080
                60000
            
        
        
            jetty-env.xml
        
    
    
        
            test
            
                run-exploded
            
        
    
    
    

提交回复
热议问题