Prerequisite: The MAVEN plugin is installed in Eclipse, or the eclipse version is above Mars (self-integrated maven)
1. New Project--maven Project
2. Click Next by default
3. Select a Build Type
4, fill in GroupID and Artifactid,groupid is the top-level project name, Artifactid is the module name (specific can be specifically looked at the meaning of the two)
5, the project is completed, the directory structure is as follows. The current project directory is not a standard MAVEN directory structure, which is refined as a standard MAVEN directory structure
6. Refine the MAVEN directory structure, add resources and WebApp directories, and change the JDK version (Properties--java build path)
7. Modify the current project to a Web project
8, after modifying the Web project, reopen the Properties option, find deployment accembly Delete webcontent and add resources and WebApp directory as the publishing directory, the test directory does not need to be published, can also be deleted (or not deleted, optional)
Configuration complete:
MAVEN Project Setup Completed
Reference site:http://www.cnblogs.com/fangjins/archive/2012/05/06/2485459.html
Create a MAVEN project with eclipse