1. New->other->maven Project, click Next
2. Continue Next
3, choose Maven-archetype-webapp, if can not find the filter inside search the Web, you can find. Continue Next
4, enter the name of your own definition, as follows:
5. After the project name, right-click->build path->add library-> Select Server Runtime,next
6. Check Apach Tomcat v7.0 (your version may be 6 or 8), Finish
7, to build MAVEN structure, you need to modify the project to manually add folders:
Src\main\java
Src\main\resources
Src\test\java
Src\test\resources
8, modify the project below the classpath, similar to the following configuration: (Specific later upload)
<classpathentry kind= "src" path= "Src/main/java"/>
<classpathentry kind= "src" path= "src/main/resources"/>
<classpathentry kind= "src" path= "Src/test/java"/>
<classpathentry kind= "src" path= "src/test/resources"/>
9. Right-click on the project name to->refresh.
10. Change the tomcat port to 80.
11. Deploy the project to Tomcat, run Tomcat, and the browser will enter "localhost/project name" to access the
MAVEN Web project Eclipse build