mvn-archetype
creates new Maven projects from templates
TLDR
Generate project from archetype
$ mvn archetype:generate
Generate with specific archetype$ mvn archetype:generate -DarchetypeGroupId=[org.apache.maven.archetypes] -DarchetypeArtifactId=[maven-archetype-quickstart]
Generate interactively$ mvn archetype:generate -DinteractiveMode=true
Generate with coordinates$ mvn archetype:generate -DgroupId=[com.example] -DartifactId=[myapp]
SYNOPSIS
mvn archetype:generate [options]
DESCRIPTION
mvn archetype:generate creates new Maven projects from templates (archetypes). Generates project structure, pom.xml, and basic code. Many archetypes available for different project types.
PARAMETERS
-DarchetypeGroupId id
Archetype group ID.-DarchetypeArtifactId id
Archetype artifact ID.-DgroupId id
Project group ID.-DartifactId id
Project artifact ID.-Dversion version
Project version.-DinteractiveMode bool
Interactive mode.
SEE ALSO
mvn(1), mvn-compile(1)
