Author: mcculls
Date: Mon Apr 27 16:28:44 2009
New Revision: 769050
URL: http://svn.apache.org/viewvc?rev=769050&view=rev
Log:
Simple script to upload existing artifact + source + assemblies + signatures to
Nexus repository
Added:
felix/trunk/stage_existing_artifact.sh (with props)
Added: felix/trunk/stage_existing_artifact.sh
URL:
http://svn.apache.org/viewvc/felix/trunk/stage_existing_artifact.sh?rev=769050&view=auto
==============================================================================
--- felix/trunk/stage_existing_artifact.sh (added)
+++ felix/trunk/stage_existing_artifact.sh Mon Apr 27 16:28:44 2009
@@ -0,0 +1,55 @@
+#!/bin/sh
+
+GAV=${1}
+
+if [ ! -f "${GAV}.jar" ]
+then
+ echo "Usage: stage_existing_artifact.sh <group.artifact-version>"
+ exit
+fi
+
+################################################################################
+# DEPLOY FUNCTION: deploy [type] [classifier]
+################################################################################
+
+deploy() {
+ EXT=${1:-jar}
+ TARGET=${GAV}${2:+-$2}.${EXT}
+ CLSFR=${2:+-Dclassifier=$2}
+
+ # upload artifact
+ mvn deploy:deploy-file \
+ -DrepositoryId=apache.releases.https \
+ -Durl=https://repository.apache.org/service/local/staging/deploy/maven2 \
+ -DpomFile=${GAV}.pom -Dpackaging=${EXT} -Dfile=${TARGET} ${CLSFR}
+
+ # upload signature
+ mvn deploy:deploy-file \
+ -DrepositoryId=apache.releases.https \
+ -Durl=https://repository.apache.org/service/local/staging/deploy/maven2 \
+ -DpomFile=${GAV}.pom -Dpackaging=${EXT}.asc -Dfile=${TARGET}.asc ${CLSFR}
+}
+
+echo
"################################################################################"
+echo " STAGE PRIMARY ARTIFACTS
"
+echo
"################################################################################"
+
+deploy pom
+deploy jar
+
+deploy jar sources
+
+echo
"################################################################################"
+echo " STAGE BINARY ASSEMBLIES
"
+echo
"################################################################################"
+
+deploy zip bin
+deploy tar.gz bin
+
+echo
"################################################################################"
+echo " STAGE PROJECT ASSEMBLIES
"
+echo
"################################################################################"
+
+deploy zip project
+deploy tar.gz project
+
Propchange: felix/trunk/stage_existing_artifact.sh
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: felix/trunk/stage_existing_artifact.sh
------------------------------------------------------------------------------
svn:executable = *