O'Reilly logo

Apache Maven 2 Effective Implementation by Maria Odea Ching, Brett Porter

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Setting up a multi-module build

It is rare for a project to contain just a single module. Even in a relatively simple application, having a monolithic source tree and build has quickly gone out of fashion, particularly for Java applications.

There are several reasons why having multiple modules is a good idea for a project whether it is using Maven or not:

  • Reusability: Where appropriate, discrete libraries can be reused in different sections of the application or in other Maven projects as they are shared through the Maven repository.
  • Readability: In many cases, it can be easier to navigate and understand an application that is broken up into self-contained modules.
  • Development efficiency: By separating the build into logical subsystems, development ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required