aboutsummaryrefslogtreecommitdiffstats
path: root/maven
diff options
context:
space:
mode:
authorYegor Kozlov <yegor@apache.org>2009-09-28 09:52:34 +0000
committerYegor Kozlov <yegor@apache.org>2009-09-28 09:52:34 +0000
commit29a6cf21e8930ab2ddaa95f99e01c8e85a5078d6 (patch)
tree04e6617f377d7ee7c4ca01df21c358d3b49015b3 /maven
parent41853d1f8e88b28b9e4ea0940df31d63f32f1d9c (diff)
downloadpoi-29a6cf21e8930ab2ddaa95f99e01c8e85a5078d6.tar.gz
poi-29a6cf21e8930ab2ddaa95f99e01c8e85a5078d6.zip
improved script for deploying maven artefacts
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@819487 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'maven')
-rwxr-xr-xmaven/mvn-deploy.sh29
1 files changed, 23 insertions, 6 deletions
diff --git a/maven/mvn-deploy.sh b/maven/mvn-deploy.sh
index 5be574a026..e228addf02 100755
--- a/maven/mvn-deploy.sh
+++ b/maven/mvn-deploy.sh
@@ -25,24 +25,41 @@
# <privateKey>/path/to/private/key</privateKey>
# </server>
#
+# <profiles>
+# <profile>
+# <id>apache-releases</id>
+# <properties>
+# <gpg.passphrase><!-- Your GPG passphrase --></gpg.passphrase>
+# </properties>
+# </profile>
+# </profiles>
+#
# Usage:
# 1. ant dist
-# 2. cd dist
+# 2. cd build/dist
# 3. ./mvn-deploy.sh
# @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 \
-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 \
-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 \
-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 \
-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@/