使用Maven Archetype插件构建Maven工程原型模板

1、在空目录运行archetype:generate上面的命令,待下载完必要的jar包后,首先需要输入内置的原型编号;

1 Choose archetype: 2 1: internal -> org.apache.maven.archetypes:maven-archetype-archetype (An archetype which contains a sample archetype.) 3 2: internal -> org.apache.maven.archetypes:maven-archetype-j2ee-simple (An archetype which contains a simplifed sample J2EE application.) 4 3: internal -> org.apache.maven.archetypes:maven-archetype-plugin (An archetype which contains a sample Maven plugin.) 5 4: internal -> org.apache.maven.archetypes:maven-archetype-plugin-site (An archetype which contains a sample Maven plugin site. 6 This archetype can be layered upon an existing Maven plugin project.) 7 5: internal -> org.apache.maven.archetypes:maven-archetype-portlet (An archetype which contains a sample JSR-268 Portlet.) 8 6: internal -> org.apache.maven.archetypes:maven-archetype-profiles () 9 7: internal -> org.apache.maven.archetypes:maven-archetype-quickstart (An archetype which contains a sample Maven project.) 10 8: internal -> org.apache.maven.archetypes:maven-archetype-site (An archetype which contains a sample Maven site which demonstrates 11 some of the supported document types like APT, XDoc, and FML and demonstrates how 12 to i18n your site. This archetype can be layered upon an existing Maven project.) 13 9: internal -> org.apache.maven.archetypes:maven-archetype-site-simple (An archetype which contains a sample Maven site.) 14 10: internal -> org.apache.maven.archetypes:maven-archetype-webapp (An archetype which contains a sample Maven Webapp project.) 15 Choose a number or apply filter (format: [groupId:]artifactId, case sensitive contains): 7:

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wppgyf.html