To make things short: if your parent-aggregator project don’t contains source code (and it’s a good practice), just add this to your parent pom.xml:
<packaging>pom</packaging>
If the parent project contains source code, I strongly suggest you to:
- move this code in a new module (let’s call it
commons
) - make
commons
a child module of your parent project - add the
commons
module as a dependency of all other modules requiring it (maybe all of them) - add
<packaging>pom</packaging>
in the parent pom.xml