Eclipse uses Maven jetty / tomcat: run command to start the web project

Eclipse plug-ins installed m2e after use Maven to build the project, start a web project on the line is very simple, as shown below.

Steps:

1, right your project -> Run As -> Run Configurations ... 

Write pictures described here

2, double-click the Maven Build the left side, there will be a New_configuration

Write pictures described here

3, the configuration Maven Build parameters, such as jetty / tomcat

Write pictures described here

4, VM ​​configuration information: -Xms512m -Xmx512m -XX: MaxNewSize = 128m -XX: MaxPermSize = 128m 

Write pictures described here

5, Apply and Run can be. First execution set as above, the operation performed as shown below after the start can be: 

Write pictures described here

 

Guess you like

Origin www.cnblogs.com/zhaosq/p/11465511.html