Create MAVEN multi-module engineering in Eclipse

Source: Internet
Author: User

1. Create the parent project first
    1. New in Eclipse Maven Project ;
    2. Select "Create a simple Project" in the popup screen

In this way, we created a MAVEN project as a regular template. We also need to make changes to this project. Note: The type of packaging is pom.

Because, this is a parent project, do not need to have any source code, then, we in eclipse the project under the unused directories are deleted, just leave the pom.xml file on the line.

2. Create sub-projects

Select the newly built Parent project (Wyp.ssm.bus), and in the pop-up menu, click New Other -> Maven Module;

Use default archetype (default:GroupId: org.apache.maven.archetypes, Artifact Id: Maven-archetype-quickstart)

Write the module name that you want to create, such as: Wyp.ssm.db.pojo, such as:

Such a subproject is created, and in the file system, the subproject is built into the parent project's directory, such as:

The Pom file and project structure inside the project shows such as:

Ext.: http://ju.outofmemory.cn/entry/75620

Create MAVEN multi-module engineering in Eclipse

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.