The command to create a project skeleton template is mvn archetype:create-from-project
For detailed usage, please use the following command:
mvn help:describe -Dplugin=archetype -Dmojo=create-from-project -Ddetail
Create steps:
- mvn clean
- mvn archetype:create-from-project
- cd \target\generated-sources\archetype
- mvn deploy
Precautions:
- When publishing to nexus , go to the dev-web\target\generated-sources\archetype directory for the deploy operation
- To ensure that there is a valid distributionManagement and its sub-element repository in the pom.xml in the project directory