Fix phase2 deps download for maven 3.2.5 This version didn't like missing <version> tag on artifacts

Signed-off-by: Daan Hoogland <daan@onecht.net>
This commit is contained in:
Rafael da Fonseca 2015-06-19 00:20:54 +02:00 committed by Daan Hoogland
parent 7838bfcc70
commit 9a50e0f03e

View File

@ -13,6 +13,10 @@ for line in $(find ../../ -name pom.xml -exec sed -n '/<dependencies>/{:a;n;/<\/
#Create new artifact dep
ARTIFACT=$line
elif [ $1 == "/dependency" ]; then
#Check if version is empty to fix maven 3.2.5 run
if [[ $ARTIFACT != *version* ]]; then
ARTIFACT="$ARTIFACT<version>LATEST</version>"
fi
#Filter out project modules interdependencies and noredist artifacts
if [[ $ARTIFACT != *org.apache.cloudstack* ]] && [[ $ARTIFACT != *com.cloud* ]] && [[ $ARTIFACT != *org.midonet* ]] && [[ $ARTIFACT != *net.juniper* ]] ; then
echo $ARTIFACT$line >> pom.xml