# create a maven-plugin project
mvn archetype:generate \
-DgroupId=org.dreamcat \
-DartifactId=apidoc-generator-maven-plugin \
-DarchetypeArtifactId=maven-archetype-mojo \
-DinteractiveMode=false
# use the plugin
mvn archetype:generate \
-DgroupId=org.dreamcat \
-DartifactId=plugin-maven-example \
-DinteractiveMode=false
mvn org.dreamcat:apidoc-generator-maven-plugin:apidocGenerate
or add shorthand to ~/.m2/settings.xml
<pluginGroups>
<pluginGroup>org.dreamcat</pluginGroup>
</pluginGroups>
mvn apidoc-generator:apidocGenerate