This project contains a simple servlet application. Use at your own risk.
This project can be built with Apache Maven. The project uses [Liberty Maven Plug-in][] to automatically download and install Liberty from the Liberty repository. Liberty Maven Plug-in is also used to create, configure, and run the application on the Liberty server.
Use the following steps to run the application locally:
-
Execute full Maven build to create the
target/JavaHelloWorldApp.warfile:$ mvn install package
-
Run resources/create_db.sql and resources/insert_db.sql on PostgreSQL
-
Update jvm.options.templates template with proper database credentials and other properties
-
Create server
$ mvn liberty:create-server
-
Rename jvm.options.templates to jvm.options and copy it to target/liberty/usr/servers/defaultServer
-
Start the server
$ mvn liberty:install-feature $ mvn liberty:start-server
Once the server is running, the application will be available under http://localhost:9080/.