maven notes: create code template archetype

 

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

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326848666&siteId=291194637