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.