AFAIK there is no way to do this. But I believe that your real problem is that this aggregator artifact is deployed to a remote repository along with other modules, and, as you said, this does not make sense. Then I recommend installing <skip>true</skip> for the maven-deploy-plugin in the pom.xml aggregator to disable its deployment, for example:
<plugin> <artifactId>maven-deploy-plugin</artifactId> <configuration> <skip>true</skip> </configuration> </plugin>
Support starts with <version>2.4</version> ref deploy-mojo install-mojo
MichaΕ Kalinowski
source share