使用自定义的archetype
本地
mvn archetype:generate -DarchetypeCatelog=local
远程
mvn archetype:generate -DarchetypeCatelog=romote
mvn archetype:generate -DarchetypeCatelog=http:localhost:8080/archetype-catalog.xml
创建maven普通项目:
mvn archetype:generate
-DgroupId=com.jeiker.xiao
-DartifactId=maven-demo
-DarchetypeArtifactId=maven-archetype-quickstart
-DinteractiveMode=false
-DarchetypeCatalog=local
创建maven web项目:
mvn archetype:generate
-DgroupId=com.jeiker.xiao
-DartifactId=maven-demo-web
-DarchetypeArtifactId=maven-archetype-webapp
-DinteractiveMode=false
-DarchetypeCatalog=local
执行crawl命令,生成archetype-catalog.xml:
mvn archetype:crawl
Maven 的41种骨架功能介绍
http://www.cnblogs.com/iusmile/archive/2012/11/14/2770118.htmlList of maven archetypes
http://maven-repository.com/archetypes
其它参考
http://repo1.maven.org/maven2/archetype-catalog.xml
http://blog.csdn.net/taiyangdao/article/details/51249367
https://www.cnblogs.com/buhaiqing/archive/2012/11/04/2754187.html
http://blog.csdn.net/jeikerxiao/article/details/60324029