Now in the project, everyone starts using jetty. It does not have to be deployed like Tomcat in MyEclipse, nor does it have to be placed under the WebApp folder as in Tomcat. Jetty can use the project directory structure directly.
When we use MAVEN, we should use MAVEN's standard directory structure. Since jetty can be used directly with the project's directory structure, jetty can be a good combination with Maven.
Of course we can also use Tomcat, and we can also deploy with MyEclipse. You need to follow these steps:
The brief steps are as follows:
0. Add Maven2 and MyEclipse plug-ins for Eclipse (m2eclipse:maven to eclipse)
1. Turn the MAVEN project into an Eclipse project by switching the DOS command window to the directory of the MAVEN project and entering the command: MVN eclipse:eclipse
2. Enter Eclipse to import the project into the workspace
3. Right-click on the project maven->enable
4. On the project, right-click Build path->configure build Path->java build path->libraries-> Remove the variable path that maven added
5. Right-click on the item Myeclipse->add Web capabilities-> to modify the Web root address (the point "Browse" button is specified as the Src/main/webapp folder under the current workspace)
6. Configuration is complete, you can use MyEclipse plug-in configuration server and so on to start normal development, automatic deployment, debugging and other operations.
Convert Maven2 project to MyEclipse project