Building a multi-module enterprise Java application with Maven and Open Liberty
Learn how to build and manage a multi-module enterprise Java application with Maven and Open Liberty. Explore how to structure large-scale applications using Maven for dependency management and Open Liberty for deployment, ensuring modular, maintainable code.
At a Glance
You will learn how to build an application with multiple modules with Maven and Open Liberty.
A Jakarta Platform, Enterprise Edition (Jakarta EE) application consists of modules that work together as one entity. An enterprise archive (EAR) is a wrapper for a Jakarta EE application, which consists of web archive (WAR) and Java archive (JAR) files. To deploy or distribute the Jakarta EE application into new environments, all the modules and resources must first be packaged into an EAR file.
In this guide, you will learn how to:
- establish a dependency between a web module and a Java library module,
- use Maven to package the WAR file and the JAR file into an EAR file so that you can run and test the application on Open Liberty, and
- use Liberty Maven plug-in to develop a multi-module application in development mode without having to prebuild the JAR and WAR files. In development mode, your changes are automatically picked up by the running server.
You will build a unit converter application that converts heights from centimeters into feet and inches. The application will request the user to enter a height value in centimeters. Then, the application processes the input by using functions that are found in the JAR file to return the height value in imperial units.
User Reviews
Be the first to review “Building a multi-module enterprise Java application with Maven and Open Liberty”
Building a multi-module enterprise Java application with Maven and Open Liberty
There are no reviews yet.