poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject svn commit: r1640337 - /poi/trunk/maven/mvn-deploy.sh
Date Tue, 18 Nov 2014 13:21:40 GMT
Author: nick
Date: Tue Nov 18 13:21:39 2014
New Revision: 1640337

URL: http://svn.apache.org/r1640337
Log:
Fix the maven deployment script to use repository.apache.org instead of the people ibiblio
sync

Modified:
    poi/trunk/maven/mvn-deploy.sh

Modified: poi/trunk/maven/mvn-deploy.sh
URL: http://svn.apache.org/viewvc/poi/trunk/maven/mvn-deploy.sh?rev=1640337&r1=1640336&r2=1640337&view=diff
==============================================================================
--- poi/trunk/maven/mvn-deploy.sh (original)
+++ poi/trunk/maven/mvn-deploy.sh Tue Nov 18 13:21:39 2014
@@ -22,7 +22,7 @@
 #    <server>
 #      <id>apache-releases</id>
 #      <username>apacheId</username>
-#      <privateKey>/path/to/private/key</privateKey>
+#      <password>mySecurePassw0rd</password>
 #    </server>
 #
 #   <profiles>
@@ -38,33 +38,25 @@
 #   1. ant dist
 #   2. cd build/dist
 #   3. ./mvn-deploy.sh 
-# @author Yegor Kozlov
 
-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
+M2_REPOSITORY=M2_REPOSITORY=https://repository.apache.org/service/local/staging/deploy/maven2
 
 VERSION=@VERSION@
 DSTAMP=@DSTAMP@
 
 for artifactId in poi poi-scratchpad poi-ooxml poi-examples poi-ooxml-schemas poi-excelant
 do
-  mvn gpg:sign-and-deploy-file -DrepositoryId=apache-releases -P apache-releases \
-    -Durl=$M2_REPOSITORY \
-    -Dfile=$artifactId-$VERSION-$DSTAMP.jar -DpomFile=$artifactId-$VERSION.pom
-  #The maven sign-and-deploy-file command does NOT sign POM files, so we have to upload the
POM's .asc manually
-  scp $artifactId-$VERSION.pom.asc $M2_SCP/org/apache/poi/$artifactId/$VERSION/
-
+  SENDS="-Dfile=$artifactId-$VERSION-$DSTAMP.jar"
+  SENDS="$SENDS -DpomFile=$artifactId-$VERSION.pom"
   if [ -r $artifactId-$VERSION-sources-$DSTAMP.jar ]; then
-    mvn deploy:deploy-file -DrepositoryId=apache-releases -P apache-releases \
-      -Durl=$M2_REPOSITORY -DgeneratePom=false -Dpackaging=java-source \
-      -Dfile=$artifactId-$VERSION-sources-$DSTAMP.jar -DpomFile=$artifactId-$VERSION.pom
-    scp $artifactId-$VERSION-sources-$DSTAMP.jar.asc $M2_SCP/org/apache/poi/$artifactId/$VERSION/$artifactId-$VERSION-sources.jar.asc
+     SENDS="$SENDS -Dsources=$artifactId-$VERSION-sources-$DSTAMP.jar"
   fi
-
   if [ -r $artifactId-$VERSION-javadocs-$DSTAMP.jar ]; then
-    mvn deploy:deploy-file -DrepositoryId=apache-releases -P apache-releases \
-      -Durl=$M2_REPOSITORY -DgeneratePom=false -Dpackaging=javadoc \
-      -Dfile=$artifactId-$VERSION-javadocs-$DSTAMP.jar -DpomFile=$artifactId-$VERSION.pom
-    scp $artifactId-$VERSION-javadocs-$DSTAMP.jar.asc $M2_SCP/org/apache/poi/$artifactId/$VERSION/$artifactId-$VERSION-javadocs.jar.asc
+     SENDS="$SENDS -Dsources=$artifactId-$VERSION-javadocs-$DSTAMP.jar"
   fi
+
+  mvn gpg:sign-and-deploy-file \
+    -DrepositoryId=apache-releases -P apache-releases \
+    -Durl=$M2_REPOSITORY \
+    $SENDS
 done



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message