Reputation: 2997
I have a project creating some FAT jar to be used via webstart loaded from an ear. This leads to the following Maven projects in a multi-module project
The jar and war artifacts are only used as intermediate artifacts to be able to create the ear artifact. However, Maven handles them as artifacts and so they are always uploaded to Nexus.
Since the jar is getting real fat, I would like to avoid uploading it 3 times to nexus for each build. Is there a way to avoid this? I can think of two ways:
Does something like this or any other solution to my problem exist?
Upvotes: 0
Views: 162
Reputation: 35785
If this is a multi-module project, you can set <maven.deploy.skip>
to true
in the projects where artifacts should not be deployed.
Upvotes: 2