Back to Catalog

Building a multi-module enterprise Java application with Maven and Open Liberty

BeginnerGuided Project

You will learn how to build an application with multiple modules with Maven and Open Liberty.

4.3 (23 Reviews)

Language

  • English

Topic

  • Open Liberty

Enrollment Count

  • 147

Skills You Will Learn

  • Java, Open Liberty, Maven

Offered By

  • IBM

Estimated Effort

  • 1 hour

Platform

  • SkillsNetwork

Last Update

  • May 2, 2024
About This Guided Project
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.