Patrick Tiu demonstrates how to generate a web application using Maven. Maven will build, then test and run the application on WebSphere Liberty.

If Maven is your build tool of choice, you can use it to generate a web application project using the following command:

mvn archetype:generate
 -DarchetypeGroupId=net.wasdev.wlp.maven
 -DarchetypeArtifactId=liberty-archetype-webapp
 -DarchetypeVersion=2.0
 -DwlpPluginVersion=2.0
 -DwlpRuntimeVersion=17.0.0.2
 -DgroupId=demo.wlp
 -DartifactId=ServletSample
 -Dversion=1.0-SNAPSHOT

This generates a web app based on the liberty-archetype-webapp and configures it to run on WebSphere Liberty V17.0.0.2:

Join The Discussion

Your email address will not be published. Required fields are marked *