August 2017
Beginner
298 pages
7h 26m
English
Let's look at a sample Maven multi-module project. Let's say we want to build two Java modules: packt.main and packt.lib. The packt.lib module contains a library class Lib with a method called sampleMethod, and the packt.main module contains a class App with a main method calling sampleMethod from Lib. Thus, packt.main has to read packt.lib, as shown here:

You've already learned that you should have one Maven project corresponding to each Java module. However, in order to ease the development, and to leverage the concept of a multi-module project in Maven, we can instead create a parent root Maven ...
Read now
Unlock full access