Reputation: 15539
I work on a maven project but don't have the rights to deploy in the our company nexus (this is done by the CI tool). However, while configuring deployment, I would like to test what is actually deployed by "mvn clean deploy".
Q: Is there a way to run deploy but don't send anything to the nexus repo?
I would expect 1 of 2 options:
Note: my project is multi-modules.
Upvotes: 4
Views: 6464
Reputation: 35795
I guess you could just overwrite the <distributionManagement>
with a local folder:
<distributionManagement>
<repository>
<id>local-release</id>
<url>file:../local_repo/release</url>
</repository>
<snapshotRepository>
<id>local-snapshot</id>
<url>file:../local_repo/snapshot</url>
</snapshotRepository>
</distributionManagement>
Upvotes: 10