From 9a50e0f03e14fdd2f3497eeb4a81c44263ed522c Mon Sep 17 00:00:00 2001 From: Rafael da Fonseca Date: Fri, 19 Jun 2015 00:20:54 +0200 Subject: [PATCH] Fix phase2 deps download for maven 3.2.5 This version didn't like missing tag on artifacts Signed-off-by: Daan Hoogland --- tools/travis/downloadDeps.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/travis/downloadDeps.sh b/tools/travis/downloadDeps.sh index acf13dca2a4..0edd27abc93 100755 --- a/tools/travis/downloadDeps.sh +++ b/tools/travis/downloadDeps.sh @@ -13,6 +13,10 @@ for line in $(find ../../ -name pom.xml -exec sed -n '//{: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="$ARTIFACTLATEST" + 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