Skip to content

Commit ba951d2

Browse files
author
Steve Powell
committed
Combine staging-close and staging-promote maven phases to ensure consistent resolution of both steps.
1 parent 508a0ab commit ba951d2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ srcdist: distclean
6464
(cd build; zip -q -r $(SRC_ARCHIVE).zip $(SRC_ARCHIVE))
6565
(cd build; rm -rf $(SRC_ARCHIVE))
6666

67-
stage-maven-bundle: maven-bundle
67+
stage-and-promote-maven-bundle: maven-bundle
6868
( \
6969
cd build/bundle; \
7070
NEXUS_USERNAME=`cat $(GNUPG_PATH)/../nexus/username`; \
@@ -79,9 +79,11 @@ stage-maven-bundle: maven-bundle
7979
amqp-client-$(VERSION)-javadoc.jar \
8080
amqp-client-$(VERSION)-sources.jar && \
8181
mvn org.sonatype.plugins:nexus-maven-plugin:$(MAVEN_NEXUS_VERSION):staging-close \
82+
org.sonatype.plugins:nexus-maven-plugin:$(MAVEN_NEXUS_VERSION):staging-promote \
8283
-Dnexus.url=http://oss.sonatype.org \
8384
-Dnexus.username=$$NEXUS_USERNAME \
8485
-Dnexus.password=$$NEXUS_PASSWORD \
86+
-Dnexus.promote.autoSelectOverride=true \
8587
-B \
8688
-Dnexus.description="Public release of $$VERSION" \
8789
)
@@ -90,11 +92,9 @@ promote-maven-bundle:
9092
( \
9193
NEXUS_USERNAME=`cat $(GNUPG_PATH)/../nexus/username`; \
9294
NEXUS_PASSWORD=`cat $(GNUPG_PATH)/../nexus/password`; \
93-
mvn org.sonatype.plugins:nexus-maven-plugin:$(MAVEN_NEXUS_VERSION):staging-promote \
9495
-Dnexus.url=http://oss.sonatype.org \
9596
-Dnexus.username=$$NEXUS_USERNAME \
9697
-Dnexus.password=$$NEXUS_PASSWORD \
97-
-Dnexus.promote.autoSelectOverride=true \
9898
-DtargetRepositoryId=releases \
9999
-B \
100100
)

0 commit comments

Comments
 (0)