mirror of https://github.com/apache/maven.git
o adding a little hack to determine if an upload is a maven plugin
or not. We need to use the <type/> but that can come post 1.0. git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@162695 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
58541e151a
commit
825716f77b
|
@ -68,5 +68,14 @@ cp $BUNDLE $WORKDIR
|
|||
|
||||
../deploy-pom ${artifactId}-${version}.pom ${groupId}
|
||||
|
||||
../deploy-jar ${artifactId}-${version}.jar ${groupId}
|
||||
artifactType=`echo ${artifactId} | sed -e 's/maven-.*-plugin//'`
|
||||
|
||||
if [ -z ${artifactType} ]
|
||||
then
|
||||
echo "Deploying Plugin ..."
|
||||
../deploy-plugin ${artifactId}-${version}.jar ${groupId}
|
||||
else
|
||||
echo "Deploying JAR ..."
|
||||
../deploy-jar ${artifactId}-${version}.jar ${groupId}
|
||||
fi
|
||||
)
|
||||
|
|
|
@ -0,0 +1,22 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Deploy JAR to the repository
|
||||
# $1 : artifact to copy
|
||||
# $2 : project id
|
||||
|
||||
ARTIFACT=$1
|
||||
ID=$2
|
||||
ARTIFACT_TYPE=plugins
|
||||
REPO=login.ibiblio.org
|
||||
DIR=/public/html/maven/${ID}/${ARTIFACT_TYPE}
|
||||
|
||||
echo ${DIR}
|
||||
|
||||
# Make sure the target directory is present.
|
||||
ssh $REPO "mkdir -p ${DIR}"
|
||||
|
||||
# Copy the artifact to the repository.
|
||||
scp $ARTIFACT ${REPO}:${DIR}
|
||||
|
||||
# Make sure the perms are correct. Just in case
|
||||
ssh $REPO "chmod 664 ${DIR}/${ARTIFACT}; chgrp maven ${DIR}/${ARTIFACT}; cd ${DIR}; md5sum ${ARTIFACT} | sed 's/ .*$//' > ${ARTIFACT}.md5; chgrp maven ${ARTIFACT}.md5"
|
Loading…
Reference in New Issue