Differences between a multi-module project and a parent project

Viewed 2967

In multi-module project in Maven, we have a parent pom with modules defined in <modules> tag, and in each module, we define which the parent pom is.

  • Why this two-way definition?

  • Why not define the relationship between them just in the parent part of the modules

  • How am I supposed to reuse modules if they are always bound to one parent?

2 Answers
Related