Eclipse Create aggregation Maven project

Source: Internet
Author: User

I do not want to spend too much time on typesetting, so if the layout is not good-looking, please forgive me.

have been using Maven all the time, but have not created the MAVEN project on their own, and are trying to create one today.

1, open Eclipse, then New,other, and the following figure (your eclipse must be able to support Maven OH)


2. First, we create a total project to accommodate each subproject for easy packaging. The following figure:




Click Finish, complete, as shown below, you need to delete all non-pom files, because this is just a total project to do module aggregation, do not need other files. Delete the following image before and after deletion:






After finish, a MAVEN project is generated, because our project is only for inclusion subprojects and packaging, so we need to remove all the files except Pom.

Before and after deletion:


You also need to give the packaging type a pom type, as shown in the following illustration:




3. Create sub-projects

3.1 Create Java subprojects, right click on the total project module, New,other






Click Finish to finish




3.2 Create the Web module, right click on the total item, New,other






Finish, finished.



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.