Eclipse new MAVEN project and aggregation project

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.