Chapter 9. Multi-module Projects

In this chapter we will cover the following recipes:

  • Understanding project inheritance
  • Understanding project aggregation
  • Combining inheritance and aggregation
  • Performing multi-module dependency management
  • Performing multi-module plugin management
  • Selectively building modules
  • Reporting for multi-module projects

Introduction

Except for simple projects, most real-life projects have more than one module. Each of them can be developed independently. Some modules might depend on others. A project that uses these modules would want to ensure that it builds successfully with the appropriate versions of all the modules.

As we look at multiple modules, each module may use a number of dependencies. To avoid dependency hell, it is important ...

Get Apache Maven Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.