improved script for deploying maven artefacts

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@819487 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yegor Kozlov 2009-09-28 09:52:34 +00:00
parent b299d32a07
commit c11f67fd74
2 changed files with 29 additions and 16 deletions

View File

@ -25,24 +25,41 @@
# <privateKey>/path/to/private/key</privateKey> # <privateKey>/path/to/private/key</privateKey>
# </server> # </server>
# #
# <profiles>
# <profile>
# <id>apache-releases</id>
# <properties>
# <gpg.passphrase><!-- Your GPG passphrase --></gpg.passphrase>
# </properties>
# </profile>
# </profiles>
#
# Usage: # Usage:
# 1. ant dist # 1. ant dist
# 2. cd dist # 2. cd build/dist
# 3. ./mvn-deploy.sh # 3. ./mvn-deploy.sh
# @author Yegor Kozlov # @author Yegor Kozlov
M2_REPOSITORY=@REPOSITORY@ M2_REPOSITORY=scp://people.apache.org/www/people.apache.org/repo/m2-ibiblio-rsync-repository
M2_SCP=people.apache.org:/www/people.apache.org/repo/m2-ibiblio-rsync-repository
mvn gpg:sign-and-deploy-file -DrepositoryId=apache-releases \ mvn gpg:sign-and-deploy-file -DrepositoryId=apache-releases -P apache-releases \
-Durl=$M2_REPOSITORY \ -Durl=$M2_REPOSITORY \
-Dfile=poi-@VERSION@-@DSTAMP@.jar -DpomFile=poi-@VERSION@.pom -Dfile=poi-@VERSION@-@DSTAMP@.jar -DpomFile=poi-@VERSION@.pom
mvn gpg:sign-and-deploy-file -DrepositoryId=apache-releases \ scp poi-@VERSION@.pom.asc $M2_SCP/org/apache/poi/poi/@VERSION@/
mvn gpg:sign-and-deploy-file -DrepositoryId=apache-releases -P apache-releases \
-Durl=$M2_REPOSITORY \ -Durl=$M2_REPOSITORY \
-Dfile=poi-scratchpad-@VERSION@-@DSTAMP@.jar -DpomFile=poi-scratchpad-@VERSION@.pom -Dfile=poi-scratchpad-@VERSION@-@DSTAMP@.jar -DpomFile=poi-scratchpad-@VERSION@.pom
mvn gpg:sign-and-deploy-file -DrepositoryId=apache-releases \ scp poi-scratchpad-@VERSION@.pom.asc $M2_SCP/org/apache/poi/poi-scratchpad/@VERSION@/
mvn gpg:sign-and-deploy-file -DrepositoryId=apache-releases -P apache-releases \
-Durl=$M2_REPOSITORY \ -Durl=$M2_REPOSITORY \
-Dfile=poi-contrib-@VERSION@-@DSTAMP@.jar -DpomFile=poi-contrib-@VERSION@.pom -Dfile=poi-contrib-@VERSION@-@DSTAMP@.jar -DpomFile=poi-contrib-@VERSION@.pom
mvn gpg:sign-and-deploy-file -DrepositoryId=apache-releases \ scp poi-contrib-@VERSION@.pom.asc $M2_SCP/org/apache/poi/poi-contrib/@VERSION@/
mvn gpg:sign-and-deploy-file -DrepositoryId=apache-releases -P apache-releases \
-Durl=$M2_REPOSITORY \ -Durl=$M2_REPOSITORY \
-Dfile=poi-ooxml-@VERSION@-@DSTAMP@.jar -DpomFile=poi-ooxml-@VERSION@.pom -Dfile=poi-ooxml-@VERSION@-@DSTAMP@.jar -DpomFile=poi-ooxml-@VERSION@.pom
scp poi-ooxml-@VERSION@.pom.asc $M2_SCP/org/apache/poi/poi-ooxml/@VERSION@/

View File

@ -78,12 +78,8 @@ poi-src-$TAG-$DATE.zip
{code} {code}
where $TAG is the release tag specified in build.xml in the version.id property, $DATE is the release date (typically +7 days from the actual build date). where $TAG is the release tag specified in build.xml in the version.id property, $DATE is the release date (typically +7 days from the actual build date).
7. Build Mavn POM files
{code}
ant maven-dist
{code}
8. Signing the release artifacts: 7. Signing the release artifacts:
{code} {code}
cd build/dist cd build/dist
for i in *.zip ; do for i in *.zip ; do
@ -100,7 +96,7 @@ Verify the signatures:
gpg --multifile --verify *.asc gpg --multifile --verify *.asc
{code} {code}
9. Create MD5 checksums for all artifacts to be published: 8. Create MD5 checksums for all artifacts to be published:
{code} {code}
for i in *.zip ; do for i in *.zip ; do
@ -111,7 +107,7 @@ for i in *.gz ; do
done done
{code} {code}
10. Upload to your area at people.apache.org. 9. Upload to your area at people.apache.org.
There should be two directories: There should be two directories:
main main
maven maven
@ -143,10 +139,10 @@ cp *-src-* /www/www.apache.org/dist/poi/release/src
cp *-bin-* /www/www.apache.org/dist/poi/release/bin cp *-bin-* /www/www.apache.org/dist/poi/release/bin
{code} {code}
copy Maven artifacts
{code} {code}
cd ~/POI-3.1-BETA1/maven cd build/dist
cp -r org.apache.poi /www/people.apache.org/repo/m1-ibiblio-rsync-repository/ ./mvn-deploy.sh
cp -r poi/poms /www/people.apache.org/repo/m1-ibiblio-rsync-repository/poi
{code} {code}
2. Make sure that the files are owned by the unix group apcvs and that they are writable by this group. 2. Make sure that the files are owned by the unix group apcvs and that they are writable by this group.