Create Java project with Maven archetype liberty-plugin-archetype


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

mvn archetype:generate   -DgroupId="com.mycompany.app"   -DartifactId="my-app-id"   -DlibertyPluginVersion="My-libertyPluginVersion"   -DarchetypeGroupId="io.openliberty.tools"   -DarchetypeArtifactId="liberty-plugin-archetype"   -DarchetypeVersion="3.0.1"   -DinteractiveMode=false 

Required parameters for generate java project:

libertyPluginVersion
validationRegex: none

Generated Project modules

  • ${rootArtifactId}-web
  • ${rootArtifactId}-test
  • ${rootArtifactId}-assembly

Details about maven archetype liberty-plugin-archetype

GroupId

GroupId

io.openliberty.tools
ArtifactId

ArtifactId

liberty-plugin-archetype
Version

Version

3.0.1
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-plugin-archetype -DarchetypeVersion=3.0.1 -DinteractiveMode=false