From: Yegor Kozlov Date: Sat, 11 Apr 2009 13:11:39 +0000 (+0000) Subject: improved the script for uploading maven artefacts, use gpg:sign-and-deploy-file inste... X-Git-Tag: REL_3_5_BETA6~63 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7e32bc95627d3980aa187d11f187e1bbb99d7f46;p=poi.git improved the script for uploading maven artefacts, use gpg:sign-and-deploy-file instead of deploy:deploy-file git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@764198 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/maven/mvn-deploy.sh b/maven/mvn-deploy.sh index 5879db9512..5be574a026 100755 --- a/maven/mvn-deploy.sh +++ b/maven/mvn-deploy.sh @@ -31,16 +31,18 @@ # 3. ./mvn-deploy.sh # @author Yegor Kozlov -mvn deploy:deploy-file -DrepositoryId=apache-releases \ - -Durl=@REPOSITORY@ \ +M2_REPOSITORY=@REPOSITORY@ + +mvn gpg:sign-and-deploy-file -DrepositoryId=apache-releases \ + -Durl=$M2_REPOSITORY \ -Dfile=poi-@VERSION@-@DSTAMP@.jar -DpomFile=poi-@VERSION@.pom -mvn deploy:deploy-file -DrepositoryId=apache-releases \ - -Durl=@REPOSITORY@ \ +mvn gpg:sign-and-deploy-file -DrepositoryId=apache-releases \ + -Durl=$M2_REPOSITORY \ -Dfile=poi-scratchpad-@VERSION@-@DSTAMP@.jar -DpomFile=poi-scratchpad-@VERSION@.pom -mvn deploy:deploy-file -DrepositoryId=apache-releases \ - -Durl=@REPOSITORY@ \ +mvn gpg:sign-and-deploy-file -DrepositoryId=apache-releases \ + -Durl=$M2_REPOSITORY \ -Dfile=poi-contrib-@VERSION@-@DSTAMP@.jar -DpomFile=poi-contrib-@VERSION@.pom -mvn deploy:deploy-file -DrepositoryId=apache-releases \ - -Durl=@REPOSITORY@ \ +mvn gpg:sign-and-deploy-file -DrepositoryId=apache-releases \ + -Durl=$M2_REPOSITORY \ -Dfile=poi-ooxml-@VERSION@-@DSTAMP@.jar -DpomFile=poi-ooxml-@VERSION@.pom diff --git a/maven/mvn-sig.sh b/maven/mvn-sig.sh deleted file mode 100755 index 8a5ae4d64d..0000000000 --- a/maven/mvn-sig.sh +++ /dev/null @@ -1,55 +0,0 @@ -#! /bin/sh -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Shell script to copy digital signatures to the Maven repository. -# Unfortunately "mvn deploy:deploy-file" does not upload *.asc files and we have to upload them after ./mvn-deploy.sh is done. -# -# Usage: -# 1. Upload release artifacts using ./mvn-deploy.sh -# 2. login to people.apache.org and cd to the directory with the release files -# 3. ./mvn-sig.sh -# @author Yegor Kozlov - -REPO=/www/people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/poi -VERSION=@VERSION@ -DSTAMP=@DSTAMP@ - -artifactId=poi -cp $artifactId-$VERSION-$DSTAMP.jar.asc $REPO/$artifactId/$VERSION/$artifactId-$VERSION.jar.asc -cp $artifactId-$VERSION.pom.asc $REPO/$artifactId/$VERSION/$artifactId-$VERSION.pom.asc -gpg --verify $REPO/$artifactId/$VERSION/$artifactId-$VERSION.jar.asc $REPO/$artifactId/$VERSION/$artifactId-$VERSION.jar -gpg --verify $REPO/$artifactId/$VERSION/$artifactId-$VERSION.pom.asc $REPO/$artifactId/$VERSION/$artifactId-$VERSION.pom - -artifactId=poi-contrib -cp $artifactId-$VERSION-$DSTAMP.jar.asc $REPO/$artifactId/$VERSION/$artifactId-$VERSION.jar.asc -cp $artifactId-$VERSION.pom.asc $REPO/$artifactId/$VERSION/$artifactId-$VERSION.pom.asc -gpg --verify $REPO/$artifactId/$VERSION/$artifactId-$VERSION.jar.asc $REPO/$artifactId/$VERSION/$artifactId-$VERSION.jar -gpg --verify $REPO/$artifactId/$VERSION/$artifactId-$VERSION.pom.asc $REPO/$artifactId/$VERSION/$artifactId-$VERSION.pom - -artifactId=poi-scratchpad -cp $artifactId-$VERSION-$DSTAMP.jar.asc $REPO/$artifactId/$VERSION/$artifactId-$VERSION.jar.asc -cp $artifactId-$VERSION.pom.asc $REPO/$artifactId/$VERSION/$artifactId-$VERSION.pom.asc -gpg --verify $REPO/$artifactId/$VERSION/$artifactId-$VERSION.jar.asc $REPO/$artifactId/$VERSION/$artifactId-$VERSION.jar -gpg --verify $REPO/$artifactId/$VERSION/$artifactId-$VERSION.pom.asc $REPO/$artifactId/$VERSION/$artifactId-$VERSION.pom - -artifactId=poi-ooxml -cp $artifactId-$VERSION-$DSTAMP.jar.asc $REPO/$artifactId/$VERSION/$artifactId-$VERSION.jar.asc -cp $artifactId-$VERSION.pom.asc $REPO/$artifactId/$VERSION/$artifactId-$VERSION.pom.asc -gpg --verify $REPO/$artifactId/$VERSION/$artifactId-$VERSION.jar.asc $REPO/$artifactId/$VERSION/$artifactId-$VERSION.jar -gpg --verify $REPO/$artifactId/$VERSION/$artifactId-$VERSION.pom.asc $REPO/$artifactId/$VERSION/$artifactId-$VERSION.pom - -