Create Java project with Maven archetype liberty-archetype-webapp


Create a Java Project by archetype liberty-archetype-webapp with Command Line:

mvn archetype:generate   -DgroupId="com.mycompany.app"   -DartifactId="my-app-id"   -DgroupId="My-groupId"   -DartifactId="My-artifactId"   -DruntimeGroupId="My-runtimeGroupId"   -DruntimeArtifactId="My-runtimeArtifactId"   -DruntimeVersion="My-runtimeVersion"   -DlibertyPluginVersion="My-libertyPluginVersion"   -DarchetypeGroupId="io.openliberty.tools"   -DarchetypeArtifactId="liberty-archetype-webapp"   -DarchetypeVersion="3.3"   -DinteractiveMode=false 

Required parameters for generate java project:

groupId
validationRegex: none
artifactId
validationRegex: none
runtimeGroupId
validationRegex: none
runtimeArtifactId
validationRegex: none
runtimeVersion
validationRegex: none
libertyPluginVersion
validationRegex: none

Details about maven archetype liberty-archetype-webapp

GroupId

GroupId

io.openliberty.tools
ArtifactId

ArtifactId

liberty-archetype-webapp
Version

Version

3.3
Type

Type

maven-archetype

How to add to project

mvn archetype:generate -DgroupId=<com.mycompany.app> -DartifactId=<my-app>  -DarchetypeGroupId=io.openliberty.tools -DarchetypeArtifactId=liberty-archetype-webapp -DarchetypeVersion=3.3 -DinteractiveMode=false