命令类似:
mvn archetype:create
-DgroupId=com.attainware.maven2example
-DartifactId=maven2example_webapp
-DarchetypeArtifactId=maven-archetype-webapp
其中archetypeArtifactId有以下几种选择:
Project
Template (Archetype) |
Purpose |
maven-archetype-archetype |
Create
your own project template (archetype). |
maven-archetype-j2ee-simple |
Creates
a J2EE project (EAR), with directories and subprojects for the EJBs,
servlets, etc. |
maven-archetype-mojo |
Create
your own Maven 2 plugins. |
maven-archetype-quickstart |
Simple
Java project, suitable for JAR generation. Maven 2 default. |
maven-archetype-site |
Documentation-only
site, with examples in several formats. You can run this archetype on top of
an existing Maven 2 project to add integrated documentation. |
maven-archetype-webapp |
Creates
a web application project (WAR), with a simple Hello World JSP. |