Create Java project with Maven archetype java-archetype

A maven archetype with reasonable defaults for starting Java projects.

Create a Java Project by archetype java-archetype with Command Line:

mvn archetype:generate   -DgroupId="com.mycompany.app"   -DartifactId="my-app-id"   -Dversion="My-version"   -Dpackage="My-package"   -DarchetypeGroupId="io.github.oliviercailloux"   -DarchetypeArtifactId="java-archetype"   -DarchetypeVersion="0.0.8"   -DinteractiveMode=false 

Required parameters for generate java project:

version
validationRegex: none
package
validationRegex: none

Details about maven archetype java-archetype

GroupId

GroupId

io.github.oliviercailloux
ArtifactId

ArtifactId

java-archetype
Version

Version

0.0.8
Type

Type

maven-archetype

How to add to project

mvn archetype:generate -DgroupId=<com.mycompany.app> -DartifactId=<my-app>  -DarchetypeGroupId=io.github.oliviercailloux -DarchetypeArtifactId=java-archetype -DarchetypeVersion=0.0.8 -DinteractiveMode=false