If your root pom is nowhere in the ancestry of your functional modules (i.e. your parent does not have root as its parent), then you could skip deployment of the aggregator by setting the maven.deploy.skip
property to true
inside your root pom.
That way, deployment would be skipped for root (it would still be "built", however).
However, I would simply deploy it as well. Give it some meaningfull coordinates (we use something like com.mycorp.aggregator-only:xy-aggregator:0-SNAPHSHOT
). SNAPSHOT Version is important, because otherwise, your artifact repository would block repeated builds.