Skip to content

Commit 508a0ab

Browse files
author
Steve Powell
committed
Add version to maven-nexus-plugin calls in *-maven-bundle targets
1 parent 2dc1aea commit 508a0ab

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ GNUPG_PATH=~
77

88
WEB_URL=http://www.rabbitmq.com/
99
NEXUS_STAGE_URL=http://oss.sonatype.org/service/local/staging/deploy/maven2
10+
MAVEN_NEXUS_VERSION=1.7
1011

1112
AMQP_CODEGEN_DIR=$(shell fgrep sibling.codegen.dir build.properties | sed -e 's:sibling\.codegen\.dir=::')
1213

@@ -77,7 +78,7 @@ stage-maven-bundle: maven-bundle
7778
amqp-client-$(VERSION).jar \
7879
amqp-client-$(VERSION)-javadoc.jar \
7980
amqp-client-$(VERSION)-sources.jar && \
80-
mvn org.sonatype.plugins:nexus-maven-plugin:staging-close \
81+
mvn org.sonatype.plugins:nexus-maven-plugin:$(MAVEN_NEXUS_VERSION):staging-close \
8182
-Dnexus.url=http://oss.sonatype.org \
8283
-Dnexus.username=$$NEXUS_USERNAME \
8384
-Dnexus.password=$$NEXUS_PASSWORD \
@@ -89,7 +90,7 @@ promote-maven-bundle:
8990
( \
9091
NEXUS_USERNAME=`cat $(GNUPG_PATH)/../nexus/username`; \
9192
NEXUS_PASSWORD=`cat $(GNUPG_PATH)/../nexus/password`; \
92-
mvn org.sonatype.plugins:nexus-maven-plugin:staging-promote \
93+
mvn org.sonatype.plugins:nexus-maven-plugin:$(MAVEN_NEXUS_VERSION):staging-promote \
9394
-Dnexus.url=http://oss.sonatype.org \
9495
-Dnexus.username=$$NEXUS_USERNAME \
9596
-Dnexus.password=$$NEXUS_PASSWORD \

0 commit comments

Comments
 (0)