Goals available for this plugin:
Goal | Description |
---|---|
archetype:crawl | Crawl a Maven repository (filesystem, not HTTP) and creates a catalog file. |
archetype:create | Deprecated. Please use the generate mojo instead. |
archetype:create-from-project | Creates an archetype project from the current project, with a
basic integration-test. |
archetype:generate | Generates a new project from an archetype, or updated the actual project if using a partial archetype. If the project is fully generated, it is generated in a directory corresponding to its artifactId. If the project is updated with a partial archetype, it is done in the current directory. |
archetype:help | Display help information on maven-archetype-plugin. Call mvn archetype:help -Ddetail=true -Dgoal=<goal-name>to display parameter details. |
archetype:integration-test | Execute the archetype integration tests, consisting in generating projects from the current archetype and optionally comparing generated projects with reference copy. Each IT consists of a sub-directory in
package phase and not directly as a goal from CLI. |
archetype:jar | Build a JAR from the current Archetype project. |
archetype:update-local-catalog | Updates the local catalog |
The following specifies the minimum requirements to run this Maven plugin:
Maven | 2.0.7 |
JDK | 1.5 |
Memory | No minimum requirement. |
Disk Space | No minimum requirement. |
You should specify the version in your project's plugin configuration:
<project> ... <build> <!-- To define the plugin version in your parent POM --> <pluginManagement> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-archetype-plugin</artifactId> <version>2.1</version> </plugin> ... </plugins> </pluginManagement> <!-- To use the plugin goals in your POM or parent POM --> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-archetype-plugin</artifactId> <version>2.1</version> </plugin> ... </plugins> </build> ... </project>
For more information, see "Guide to Configuring Plug-ins"