Create Java project with Maven archetype archetypes-command


Create a Java Project by archetype archetypes-command with Command Line:

mvn archetype:generate   -DgroupId="com.mycompany.app"   -DartifactId="my-app-id"   -Dscope="My-scope"   -Dcommand="My-command"   -Ddescription="My-description"   -DarchetypeGroupId="org.apache.karaf.archetypes"   -DarchetypeArtifactId="archetypes-command"   -DarchetypeVersion="2.2.2"   -DinteractiveMode=false 

Required parameters for generate java project:

scope
validationRegex: none
command
validationRegex: none
description
validationRegex: none

Details about maven archetype archetypes-command

GroupId

GroupId

org.apache.karaf.archetypes
ArtifactId

ArtifactId

archetypes-command
Version

Version

2.2.2
Type

Type

maven-archetype

How to add to project

mvn archetype:generate -DgroupId=<com.mycompany.app> -DartifactId=<my-app>  -DarchetypeGroupId=org.apache.karaf.archetypes -DarchetypeArtifactId=archetypes-command -DarchetypeVersion=2.2.2 -DinteractiveMode=false