@@ -7,6 +7,7 @@ GNUPG_PATH=~
77
88WEB_URL =http://www.rabbitmq.com/
99NEXUS_STAGE_URL =http://oss.sonatype.org/service/local/staging/deploy/maven2
10+ MAVEN_NEXUS_VERSION =1.7
1011
1112AMQP_CODEGEN_DIR =$(shell fgrep sibling.codegen.dir build.properties | sed -e 's:sibling\.codegen\.dir=::')
1213
@@ -21,11 +22,11 @@ clean:
2122distclean : clean
2223 make -C $(AMQP_CODEGEN_DIR ) clean
2324
24- dist : distclean srcdist dist_all
25+ dist : distclean srcdist dist_all maven-bundle
2526
2627dist_all : dist1.5 javadoc-archive
2728
28- maven-bundle : distclean
29+ maven-bundle :
2930 ant -Dimpl.version=$(VERSION ) maven-bundle
3031
3132dist1.5 :
@@ -63,7 +64,7 @@ srcdist: distclean
6364 (cd build; zip -q -r $(SRC_ARCHIVE).zip $(SRC_ARCHIVE))
6465 (cd build; rm -rf $(SRC_ARCHIVE))
6566
66- stage-maven-bundle : maven-bundle
67+ stage-and-promote- maven-bundle :
6768 ( \
6869 cd build/bundle; \
6970 NEXUS_USERNAME=` cat $( GNUPG_PATH) /../nexus/username` ; \
@@ -77,23 +78,14 @@ 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- -Dnexus.url=http://oss.sonatype.org \
82- -Dnexus.username=$$ NEXUS_USERNAME \
83- -Dnexus.password=$$ NEXUS_PASSWORD \
84- -B \
85- -Dnexus.description=" Public release of $$ VERSION" \
86- )
87-
88- promote-maven-bundle :
89- ( \
90- NEXUS_USERNAME=` cat $( GNUPG_PATH) /../nexus/username` ; \
91- NEXUS_PASSWORD=` cat $( GNUPG_PATH) /../nexus/password` ; \
92- mvn org.sonatype.plugins:nexus-maven-plugin:staging-promote \
81+ mvn org.sonatype.plugins:nexus-maven-plugin:$(MAVEN_NEXUS_VERSION ) :staging-close \
82+ org.sonatype.plugins:nexus-maven-plugin:$(MAVEN_NEXUS_VERSION ) :staging-promote \
9383 -Dnexus.url=http://oss.sonatype.org \
9484 -Dnexus.username=$$ NEXUS_USERNAME \
9585 -Dnexus.password=$$ NEXUS_PASSWORD \
9686 -Dnexus.promote.autoSelectOverride=true \
9787 -DtargetRepositoryId=releases \
9888 -B \
89+ -Dnexus.description=" Public release of $$ VERSION" \
9990 )
91+
0 commit comments