Maven2 builds the template project based on the project and uses it to create the project in bulk.

Source: Internet
Author: User

Maven 3 creates its own templates and uses templates to create projects

1. Set up a model MAVEN project: MyModel

2. Enter the MyModel project root directory
Execution: MVN archetype:create-from-project
Objective: To create a template project file

3. Enter Mymodel/target/generated-sources/archetype
Execution: mvn Install
Purpose: Install to the local MAVEN repository

4. Create a Project Catalog NewProject

5. Enter NewProject
Execution: MVN archetype:generate-darchetypecatalog=local
<-Dfilter=myModel> If a lot of it can be filtered (I found that even if the filter, the template loading speed is very slow.) )
Purpose: Dialog mode to create a project using local engineering templates

The project was created without an accident.

6. Optional: mvn eclipse:eclipse into Eclipse project

Maven2 builds the template project based on the project and uses it to create the project in bulk.

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.