From the course: Introducing Maven

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Reactors and parents

Reactors and parents

From the course: Introducing Maven

Start my 1-month free trial

Reactors and parents

- [Instructor] There's one more high-level concept that I want to talk about, and this really can be helpful for organizations that want to control dependencies at a higher level and that is parent POMs and the associated concept of reactor builds. A parent POM is a POM file that is stand-alone, meaning that there is no code associated with it. That creates a list of dependency versions and plugin versions that the subordinate projects can leverage. This provides a way to control versions in one place so the subordinate projects don't actually have to specify the version, only the dependency. In addition to dependencies and plugins, parent POMs can provide properties and repositories. This really becomes a powerful tool when companies need a way to manage versions and licenses, as you can provide a pre-approved list of dependencies and artifacts. A similar concept called a reactor exists. A reactor builds on the concept of a parent POM. A reactor is used to build a group of related…

Contents