I've read many questions and answers here on SO, but I can't find an aswer that clears my doubts.
I have a big Java project managed with Maven
(let's call it MainProj), and it has many dependencies, some of which are other standalone projects done by me and my team.
What I've done is a single maven project for each related project, installed each one into my repository, and imported into the MainProj with standard <dependency></dependency>
imports.
I've now discovered inheritance and aggregation in Maven, but what I can't figure out is:
Is my MyProject suitable for this structure, or is the standard dependency import the best practice?
I've read the concept of superPom (or parent pom), but I can't figure how it works: should I create a standalone pom, not related to any java code, that only manages the childs and other related poms? Or that superPom should be, in my example, the one included in MainProj ?
- In case, should I import my related projects with inheritance or with aggregation?
Thanks