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"   -DwlpPluginVersion="My-wlpPluginVersion"   -DarchetypeGroupId="net.wasdev.wlp.maven"   -DarchetypeArtifactId="liberty-plugin-archetype"   -DarchetypeVersion="2.1.1"   -DinteractiveMode=false 

Required parameters for generate java project:

wlpPluginVersion
validationRegex: none

Generated Project modules

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

Details about maven archetype liberty-plugin-archetype

GroupId

GroupId

net.wasdev.wlp.maven
ArtifactId

ArtifactId

liberty-plugin-archetype
Version

Version

2.1.1
Type

Type

maven-archetype

How to add to project

mvn archetype:generate -DgroupId=<com.mycompany.app> -DartifactId=<my-app>  -DarchetypeGroupId=net.wasdev.wlp.maven -DarchetypeArtifactId=liberty-plugin-archetype -DarchetypeVersion=2.1.1 -DinteractiveMode=false