Maven Plugin Archetype

maven-archetype-plugin is an archetype which generates a sample Maven plugin:

project
|-- .mvn
|   |-- jvm.config
|   `-- maven.config
|-- pom.xml
`-- src
    |-- main
    |   `-- java
    |       `-- $package
    |           `-- MyMojo.java
    |-- test
    |   |-- java
    |   |   `-- $package
    |   │       `-- MyMojoTest.java
    |   `-- resources
    |       `-- project-to-test
    |           `-- pom.xml
    `-- it
        |-- simple-it
        |   |-- pom.xml
        |   `-- verify.groovy
        `-- settings.xml

Usage

To generate a new project from this archetype, type:

mvn archetype:generate -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-plugin -DarchetypeVersion=1.5