mirror of https://github.com/apache/maven.git
Added ability to override groupId
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163417 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
53a4d44599
commit
6cc05c4e8d
|
@ -1,7 +1,8 @@
|
|||
#!/bin/sh
|
||||
|
||||
BUNDLEURL=$1
|
||||
VERSION=$2
|
||||
GROUPID=$2
|
||||
VERSION=$3
|
||||
|
||||
[ "${BUNDLEURL}" = "" ] && echo && echo "You must specify a bundle URL!" && echo && exit
|
||||
|
||||
|
@ -55,11 +56,16 @@ echo $BUNDLE
|
|||
artifactId=`cat ${POM} | tr '\n' ' ' | sed 's#<versions>.*</versions>##' | sed 's#<developers>.*</developers>##' | sed 's#<dependencies>.*</dependencies>##' | sed 's#<contributors>.*</contributors>##' | grep '<id>' | sed -e 's#^.*<id>##;s#</id>.*$##'`
|
||||
fi
|
||||
|
||||
groupId=`cat ${POM} | tr '\n' ' ' | sed 's#<dependencies>.*</dependencies>##' | grep '<groupId>' | sed -e 's#^.*<groupId>##;s#</groupId>.*$##'`
|
||||
|
||||
if [ -z $groupId ]
|
||||
if [ ! -z $GROUPID ]
|
||||
then
|
||||
groupId=${artifactId}
|
||||
groupId=${GROUPID}
|
||||
else
|
||||
groupId=`cat ${POM} | tr '\n' ' ' | sed 's#<dependencies>.*</dependencies>##' | grep '<groupId>' | sed -e 's#^.*<groupId>##;s#</groupId>.*$##'`
|
||||
|
||||
if [ -z $groupId ]
|
||||
then
|
||||
groupId=${artifactId}
|
||||
fi
|
||||
fi
|
||||
|
||||
version=`echo ${version} | sed -e 's/ *$//'`
|
||||
|
|
Loading…
Reference in New Issue