@@ -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
@@ -36,15 +37,15 @@ javadoc-archive:
3637 ant javadoc
3738 cp -Rp build/doc/api build/$(JAVADOC_ARCHIVE )
3839 (cd build; tar -zcf $( JAVADOC_ARCHIVE) .tar.gz $( JAVADOC_ARCHIVE) )
39- (cd build; zip -r $( JAVADOC_ARCHIVE) .zip $( JAVADOC_ARCHIVE) )
40+ (cd build; zip -q - r $( JAVADOC_ARCHIVE) .zip $( JAVADOC_ARCHIVE) )
4041 (cd build; rm -rf $( JAVADOC_ARCHIVE) )
4142
4243post-dist :
4344 @[ -n " $( TARBALL_NAME) " ] || (echo " Please set TARBALL_NAME." ; false)
4445 chmod a+x build/$(TARBALL_NAME ) /* .sh
4546 cp LICENSE* build/$(TARBALL_NAME )
4647 (cd build; tar -zcf $( TARBALL_NAME) .tar.gz $( TARBALL_NAME) )
47- (cd build; zip -r $( TARBALL_NAME) .zip $( TARBALL_NAME) )
48+ (cd build; zip -q - r $( TARBALL_NAME) .zip $( TARBALL_NAME) )
4849 (cd build; rm -rf $( TARBALL_NAME) )
4950
5051srcdist : distclean
@@ -60,10 +61,10 @@ srcdist: distclean
6061 >> build/$(SRC_ARCHIVE)/README; \
6162 fi
6263 (cd build; tar -zcf $(SRC_ARCHIVE).tar.gz $(SRC_ARCHIVE))
63- (cd build; zip -r $(SRC_ARCHIVE).zip $(SRC_ARCHIVE))
64+ (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 : 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