I am using maven-release-plugin 2.5.3 to perform a depoyment to my nexus repo as well as a third party repo, hence i am using profiles, my nexus profile is set up in settings.xml whereas the third party on pom.xml
For some reasons the releaseProfiles and -P options don't seem to work, I can only get one profile to update the repo. does anyone have an idea on how i can manage to deploy my artifacts to both repos at one time?
please seee below my config:
<distributionManagement>
<repository>
<id>${repo-id}</id>
<name>${repo-name}</name>
<url>${repo-url}</url>
</repository>
</distributionManagement>
<profiles>
<profile>
<id>p1</id>
<properties>
<repo-id>X-xxxx-XX</repo-id>
<repo-name>X Server</repo-name>
<repo-url>https://x.thirdparty.co/x-artifacts/</repo-url>
</properties>
</profile>
<profile>
<id>nexus</id>
<properties>
<repo-id>X-xxxx-XX</repo-id>
<repo-name>X Server</repo-name>
<repo-url>https://x.x.co/x-artifacts/</repo-url>
</properties>
</profile>
</profiles>
mvn release:clean release:prepare release:perform -B -P nexus,p1
I have tried also configuring the profiles on the pom but with no luck it's cleary a bug but i need a workaround to get my both repos updated.
When I run
mvn release:prepare -DdryRun=true help:active-profiles -P p1
I can see both profiles indicating as active.
How can i upload the artifacts to both repos?