1. New Maven Project:next
2, tick create a simple project:next
3, Group Id: The package path of the project, such as COM.JIAYOU.ZJL, after the controller, service and other packages are created under the package path.
Artifact Id: Project name.
Packaging: How to package it. General parent Project on POM, the parent project can have nothing but a pom.xml; sub-projects with war
Finish
4, following the creation of a successful parent project as follows, you can delete src.
5. Create sub-projects below
The new MAVEN module sees the first step of the diagram
This requires specifying a parent project, such as. This specifies the parent project that Test_p just created
Also choose Create a simple project
Next
Packing Select the War project by default
Finish
6, after the creation of the appearance of the following, so that the format of the two projects is a parent-child project relationship, but also to do some processing of the sub-project is formally completed
7, right-click Subproject, Project Facets, here JDK specifies 1.7.
8. Some of the packages that are required to generate Web. XML and others
Tick generate Web. XML generated under Src/main/webapp OK OK
9. The following sub-project format is generated.
Finish...
Eclipse new MAVEN project and aggregation project