Chapter 2. Understanding the Project Object Model (POM)

POM is at the heart of any Maven project. This chapter focuses on the core concepts and best practices related to POM in building a large-scale, multi-module Maven project.

As we proceed with this chapter, the following topics will be covered in detail:

  • The POM hierarchy, super POM, and parent POM
  • Extending and overriding POM files
  • Maven coordinates
  • Managing dependencies
  • Transitive dependencies
  • Dependency scopes and optional dependencies

Project Object Model (POM)

Any Maven project must have a pom.xml file. POM is the Maven project descriptor just like the web.xml file in your Java EE web application, or the build.xml file in your Ant project. The following code lists out all the key elements in a ...

Get Maven Essentials 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.