diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/policy/drools-pdp-script.sh | 8 | ||||
-rwxr-xr-x | scripts/policy/engine.sh | 8 |
2 files changed, 12 insertions, 4 deletions
diff --git a/scripts/policy/drools-pdp-script.sh b/scripts/policy/drools-pdp-script.sh index fc8556ff..6e14931f 100755 --- a/scripts/policy/drools-pdp-script.sh +++ b/scripts/policy/drools-pdp-script.sh @@ -37,8 +37,12 @@ fi # bring down maven mkdir maven cd maven -curl -O http://apache.claz.org/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz -tar -xzvf apache-maven-3.3.9-bin.tar.gz +# download maven from automatically selected mirror server +curl -vLO "https://www.apache.org/dyn/mirrors/mirrors.cgi?cca2=us&preferred=http://apache.claz.org/&action=download&filename=maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz" +if ! tar -xzvf apache-maven-3.3.9-bin.tar.gz ; then + echo "Installation of maven has failed!" + exit 1 +fi ls -l export PATH=${PATH}:${WORK_DIR}/maven/apache-maven-3.3.9/bin ${WORK_DIR}/maven/apache-maven-3.3.9/bin/mvn -v diff --git a/scripts/policy/engine.sh b/scripts/policy/engine.sh index ef02be5a..3e9f3d42 100755 --- a/scripts/policy/engine.sh +++ b/scripts/policy/engine.sh @@ -37,8 +37,12 @@ fi # bring down maven mkdir maven cd maven -curl -O http://apache.claz.org/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz -tar -xzvf apache-maven-3.3.9-bin.tar.gz +# download maven from automatically selected mirror server +curl -vLO "https://www.apache.org/dyn/mirrors/mirrors.cgi?cca2=us&preferred=http://apache.claz.org/&action=download&filename=maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz" +if ! tar -xzvf apache-maven-3.3.9-bin.tar.gz ; then + echo "Installation of maven has failed!" + exit 1 +fi ls -l export PATH=${PATH}:${WORK_DIR}/maven/apache-maven-3.3.9/bin ${WORK_DIR}/maven/apache-maven-3.3.9/bin/mvn -v |