O'Reilly logo

Maven Build Customization by Giacomo Veneri, Riccardo Giomi, Umberto Antonio Cicero, Roberto Baldi, Lorenzo Anardu

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

Best practices

In this last section, we'll speak about how to refactor POMs of multimodule projects in order to avoid errors and dependency conflicts.

Aggregate POMs

When we have a project consisting of several modules, we will sometimes want to build only a subset of them. If we build the parent project, all the modules will be compiled. On the other hand, building each module separately can be tedious, and we should remember to build the modules in the right order if they depend on each other. To accomplish all these needs, we can use an additional aggregate POM. Let's consider our transportation project example again and suppose that we want to clean and build not only the transportation-acq-ear module but also all the other modules on which ...

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