When creating a maven multi-module project, is there any advantage in having a root pom and a separate parent module containing another pom.
For example: Option A:
sample-project
- sample-module-a
- pom.xml
- sample-module-b
- pom.xml
- sample-parent
- pom.xml
- pom.xml
Option B:
sample-project
- sample-module-a
- pom.xml
- sample-module-b
- pom.xml
- pom.xml
In option b, there is no separate parent module, the root pom.xml provides all the parent features.
In option a, there is a root pom and also a pom in parent module and the features are divided between 2 poms.
I just want to understand if there is any advantages of one over other and when would one choose one over the other.