LinuxCommandLibrary

mvn-archetype

creates new Maven projects from templates

TLDR

Generate project from archetype

$ mvn archetype:generate
copy
Generate with specific archetype
$ mvn archetype:generate -DarchetypeGroupId=[org.apache.maven.archetypes] -DarchetypeArtifactId=[maven-archetype-quickstart]
copy
Generate interactively
$ mvn archetype:generate -DinteractiveMode=true
copy
Generate with coordinates
$ mvn archetype:generate -DgroupId=[com.example] -DartifactId=[myapp]
copy

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)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community