The first thing to verify is that the MAVEN plugin is installed
1. Right button new= "other...=" Maven Project, as shown in the figure:
2. Click Next, as shown in figure:
3. Select the check box pointing to the red arrow in the above image to click Next, as shown:
4. Fill in the selection of several options above, click Finish, create a directory structure as shown below (at this time the Pom.xml file does not have any configuration, you need to manually configure):
5. Now MAVEN General project has been established, to change it to a Web project, right key engineering, select the Properties option to go to the following figure:
6. Select Myeclipse= Project Facets, click the Convert to faceted form on the right ..., and go to the following figure:
7. Select the option in the Red box above, click the next link to enter the following figure:
8. Modify the Webroot in the Red box to WebApp Click OK, at this time the project directory structure as follows (at this point the project has been marked as a Web project):
9. After the project becomes a Web project, you need to modify the directory structure, to allow the change project to run on Tomcat, right key project = "new=" package fill in the new directory (this file holds the Web project Jsp,js and other files, note to put in the Main method), as shown:
10. Click OK project directory structure into the following image:
11. Replace the previous WebApp file with the newly established WebApp folder, delete the original WebApp folder, the new directory structure as shown in the following figure:
12. The project can not run at this time, you need to do the following configuration, right key engineering properties, into the following figure:
13. Delete the two options in the above image, click on the right add to enter the following figure:
14. Select the option in the Red box above, click Next, and go to the following image:
15. Select the red box in the above option, click Finish, (This step is the introduction of MAVEN jar package into the project), the following figure:
16. Then click the Add button on the above to select the option to go to the following figure:
17. Finally select WebApp, click Finish (This action is to specify the working directory of the Web project and the basic configuration file loaded), as shown below:
18. The Web project created by Maven is basically created, and later Pom.xml and Web.xml, and the jar packages for each framework need to be added to their own hands-on configuration, and the final directory structure is as follows: