Maven Archetype Packaging
This is 'maven-archetype
' packaging configuration for archetype projects. It provides maven-archetype-plugin bindings to default lifecycle:
- archetype:jar to
package
phase, - archetype:integration-test to
integration-test
phase, - archetype:update-local-catalog to
install
phase.
in addition to classical resource/jar/install/deploy. See Archetype Packaging Reference for details.
Usage
Declaring maven-archetype
packaging to your pom is not the only step required:
- to be available from the archetype project, the packaging must be added as an extension,
Typical pom.xml
contains:
<project>
...
<packaging>maven-archetype</packaging>
...
<build>
<extensions>
<extension>
<groupId>org.apache.maven.archetype</groupId>
<artifactId>archetype-packaging</artifactId>
<version>3.4.0</version>
</extension>
</extensions>
</build>
</project>