Create Java project with Maven archetype java-mainclass-archetype

Creates a new Simple standalone Java Container (main class)

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

mvn archetype:generate   -DgroupId="com.mycompany.app"   -DartifactId="my-app-id"   -DarchetypeGroupId="io.fabric8.archetypes"   -DarchetypeArtifactId="java-mainclass-archetype"   -DarchetypeVersion="2.2.100"   -DinteractiveMode=false 

Details about maven archetype java-mainclass-archetype

GroupId

GroupId

io.fabric8.archetypes
ArtifactId

ArtifactId

java-mainclass-archetype
Version

Version

2.2.100
Type

Type

maven-archetype

How to add to project

mvn archetype:generate -DgroupId=<com.mycompany.app> -DartifactId=<my-app>  -DarchetypeGroupId=io.fabric8.archetypes -DarchetypeArtifactId=java-mainclass-archetype -DarchetypeVersion=2.2.100 -DinteractiveMode=false