1. Create the MAVEN project as follows:
2. Select Create in default space
3. Select the default fast-build version
4. Set the ID, and manually specify the package name, do not use the auto-generated
5. After generating the following Java project, add the following two source folders and two normal folders
6. Configure the eclipse Tomcat as pictured and select the local tomcat location.
7. In the Server window, click New to have a server and select the Tomcat version
8. Copy the generated servers Web. XML into the Web-inf
9. Modify the Web. XML in Web-inf as follows:
10. Then configure the project's Pom file, modify the jar package for the war package
11. Modify the Tomcat server file
12. Execute on the project, Runas->maven install, then set the path of the project in servers Server.xml
13. The project name can be accessed directly after launch