1. Open Eclipse, right-click new--"Other, if you find Maven project
2. Select Maven Project to display the window where the MAVEN project was created
3. Search for "Web" in the Search box, select, Next
4. Enter the basic information for the MAVEN project as shown in:
5, after the new MAVEN project, the initial directory is such (perhaps because some settings, the initial directory is different) can be found in the initial directory, the directory does not have "Src/main/java" and "Srr/main/test" two source folders:
6. Click on the project name and right click to select "Build Path"-"Configrue Build Path" appears
7. Click "JRE System Library [javase-1-7]" (not the same version as Eclipse may appear), then click "Edit"
8. Select "Workspace default JRE (jdk1.7.0_79)" and select Finish
9, we can now be familiar with the directory structure
10. How to convert MAVEN project to Web project (1) Click Project, right click-"Select properties-" to select Project Facets under Maven
(2) If the previous Dynamic Web module has a tick, first remove the tick, apply-"OK
(3) Repeat step (1) You can see the Dynamic Web module does not tick, tick, after the appearance of further configuration available
(4) Click further configuration available, appear modify Web moduls settings, populate content directory with Src/main/webapp, and generate web . XML deployment Descriptor tick-"ok-" apply-"OK
(5) The final result
Create a MAVEN project under Eclipse