Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Not A Bug
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Build Tooling
-
Labels:None
-
Environment:nexus-staging-maven-plugin 1.6.7
maven 3.3.9
Description
Following up on OSSRH-28131, it seems that <skipLocalStaging>true</skipLocalStaging> prevents nexus-staging-maven-plugin from deploying into the correct repository.
I run:
mvn --batch-mode -U -e nexus-staging:rc-open -DserverId=sonatype-nexus-staging -DnexusUrl=https://oss.sonatype.org/ -DstagingProfileId=353562598afa mvn --batch-mode -e -DosDetection=false -Pmac-amd64-release,release deploy -DserverId=sonatype-nexus-staging -DnexusUrl=https://oss.sonatype.org/ -DstagingProfileId=353562598afa -DstagingRepositoryId=orgbitbucketcowwoc-1151 mvn --batch-mode -e -DosDetection=false -Pempty-jar,release deploy -DserverId=sonatype-nexus-staging -DnexusUrl=https://oss.sonatype.org/ -DstagingProfileId=353562598afa -DstagingRepositoryId=orgbitbucketcowwoc-1151 mvn --batch-mode -e -DosDetection=false -Plinux-amd64-release,release deploy -DserverId=sonatype-nexus-staging -DnexusUrl=https://oss.sonatype.org/ -DstagingProfileId=353562598afa -DstagingRepositoryId=orgbitbucketcowwoc-1151 mvn --batch-mode -e -DosDetection=false -Plinux-i386-release,release deploy -DserverId=sonatype-nexus-staging -DnexusUrl=https://oss.sonatype.org/ -DstagingProfileId=353562598afa -DstagingRepositoryId=orgbitbucketcowwoc-1151 mvn --batch-mode -e -DosDetection=false -Pwindows-amd64-release,release deploy -DserverId=sonatype-nexus-staging -DnexusUrl=https://oss.sonatype.org/ -DstagingProfileId=353562598afa -DstagingRepositoryId=orgbitbucketcowwoc-1151 mvn --batch-mode -U -e nexus-staging:rc-close -DserverId=sonatype-nexus-staging -DnexusUrl=https://oss.sonatype.org/ -DstagingProfileId=353562598afa -DstagingRepositoryId=orgbitbucketcowwoc-1151
oss.sonatype.org shows a manually-created repository "orgbitbucketcowwoc-1151" but then I also see implicitly generated repositories orgbitbucketcowwoc-1152, orgbitbucketcowwoc-1153, orgbitbucketcowwoc-1154 and my files are getting scattered across the 4 repositories.
If I run the exact same commands without <skipLocalStaging>true</skipLocalStaging> the deploy works as expected.
Expected behavior: multiple deploys should end up in the same repository even when <skipLocalStaging>true</skipLocalStaging>.
Bonus points: the deploy command should log the repositoryId being used, like all the other rc-* commands already do. This would help debugging such issues in the future.