mirror of https://github.com/apache/maven.git
the parameter is now the bundle url and copies files to repository dir to be sync'ed later
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163028 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
06ca881be3
commit
528863b613
|
@ -1,24 +1,31 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
BUNDLE=$1
|
BUNDLEURL=$1
|
||||||
VERSION=$2
|
VERSION=$2
|
||||||
|
|
||||||
[ "${BUNDLE}" = "" ] && echo && echo "You must specify a bundle!" && echo && exit
|
[ "${BUNDLEURL}" = "" ] && echo && echo "You must specify a bundle URL!" && echo && exit
|
||||||
|
|
||||||
WORKDIR=bundle.tmp
|
WORKDIR=bundle.tmp
|
||||||
|
# repo dir relative to WORKDIR
|
||||||
|
REPODIR=../repository
|
||||||
|
|
||||||
rm -rf $WORKDIR > /dev/null 2>&1
|
rm -rf $WORKDIR > /dev/null 2>&1
|
||||||
|
|
||||||
mkdir $WORKDIR
|
mkdir $WORKDIR
|
||||||
|
|
||||||
cp $BUNDLE $WORKDIR
|
cd $WORKDIR
|
||||||
|
|
||||||
|
wget $BUNDLEURL
|
||||||
|
BUNDLE=`echo $BUNDLEURL | sed -e 's#^.*/##;'`
|
||||||
|
|
||||||
|
echo $BUNDLE
|
||||||
|
|
||||||
(
|
(
|
||||||
cd $WORKDIR
|
|
||||||
|
|
||||||
jar xf $BUNDLE
|
jar xf $BUNDLE
|
||||||
|
|
||||||
POM=project.xml
|
POM=project.xml
|
||||||
|
less $POM
|
||||||
|
|
||||||
../d2u ${POM}
|
../d2u ${POM}
|
||||||
|
|
||||||
|
@ -60,6 +67,10 @@ cp $BUNDLE $WORKDIR
|
||||||
echo "artifactId: [${artifactId}]"
|
echo "artifactId: [${artifactId}]"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo -n Hit Enter to continue or Ctrl-C to abort...
|
||||||
|
read
|
||||||
|
|
||||||
LIC=LICENSE.txt
|
LIC=LICENSE.txt
|
||||||
|
|
||||||
# A little help for manually created upload bundles
|
# A little help for manually created upload bundles
|
||||||
|
@ -72,18 +83,22 @@ cp $BUNDLE $WORKDIR
|
||||||
|
|
||||||
../d2u $LIC
|
../d2u $LIC
|
||||||
|
|
||||||
../deploy-lic $LIC ${groupId}
|
mkdir -p $REPODIR/${groupId}/licenses
|
||||||
|
cp $LIC $REPODIR/${groupId}/licenses/${artifactId}-${version}.license
|
||||||
|
|
||||||
../deploy-pom ${artifactId}-${version}.pom ${groupId}
|
mkdir -p $REPODIR/${groupId}/poms
|
||||||
|
cp ${artifactId}-${version}.pom $REPODIR/${groupId}/poms
|
||||||
|
|
||||||
artifactType=`echo ${artifactId} | sed -e 's/maven-.*-plugin//'`
|
artifactType=`echo ${artifactId} | sed -e 's/maven-.*-plugin//'`
|
||||||
|
|
||||||
if [ -z ${artifactType} ]
|
if [ -z ${artifactType} ]
|
||||||
then
|
then
|
||||||
echo "Deploying Plugin ..."
|
echo "Deploying Plugin ..."
|
||||||
../deploy-plugin ${artifactId}-${version}.jar ${groupId}
|
mkdir -p $REPODIR/${groupId}/plugins
|
||||||
|
cp ${artifactId}-${version}.jar $REPODIR/${groupId}/plugins
|
||||||
else
|
else
|
||||||
echo "Deploying JAR ..."
|
echo "Deploying JAR ..."
|
||||||
../deploy-jar ${artifactId}-${version}.jar ${groupId}
|
mkdir -p $REPODIR/${groupId}/jars
|
||||||
|
cp ${artifactId}-${version}.jar $REPODIR/${groupId}/jars
|
||||||
fi
|
fi
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue