Multi-module projects
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) andshop-cli(depends on core).
Draft outline details
Demonstration
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.
Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.