Skip to content
Ameen Abozaid
In reviewJNR-002-L06

Multi-module projects

  • Lesson 6 of 8
  • 11 min read
  • Junior
On This Lesson 4 topics

The content for this lesson is written and waiting for review. The outline below shows what it covers. It will be published once it is approved.

In this lesson

split one project into modules with a parent POM.

Planned topics

  • A parent POM has <packaging>pom</packaging> and lists <modules>.
  • Each module has its own POM and points to the parent.
  • Shared versions and plugin settings live in the parent.
  • One command builds all modules in the right order.
  • Example: shop-core (domain) and shop-cli (depends on core).
Draft outline details

Demonstration

text
shop/
  pom.xml          (parent: modules shop-core, shop-cli)
  shop-core/pom.xml
  shop-cli/pom.xml (depends on shop-core)

Check your understanding

What packaging does a parent POM use?

Show answer

pom.

Practice

Apply this lesson with the module's lab, exercises and quiz.

Lab and exercises Quiz

Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.

Continue to next lesson

Type to search levels, phases, modules and lessons.