概括图很形象,来自https://maven.apache.org/archetype/maven-archetype-plugin/index.html
1.png
1.从工程创建原型
mvn archetype:create-from-project

如果需要参数定制化 https://maven.apache.org/archetype/maven-archetype-plugin/examples/create-with-property-file.html

2.进入/target/generated-sources/archetype目录

find ./ -name target |xargs rm -rf 删除自动生成的target    find ./ -name .*|grep src|xargs rm -rf 删除.开头的
收藏 打印