Skip to content

Commit 8d231a2

Browse files
committed
Build scripts:
* Update Maven version to 3.9.12. * Make curl follow redirect and fail on error / 404 when downloading Maven tarball.
1 parent b3eff95 commit 8d231a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

travis/script.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ done
4949
DEPS_CENTOS=$DEPS_CENTOS$DEPS_CENTOS_PRIOR_TO_9
5050
DEPS_CENTOS8=$DEPS_CENTOS8$DEPS_CENTOS_PRIOR_TO_9
5151

52-
MYMVN_URL='https://dlcdn.apache.org/maven/maven-3/3.9.11/binaries/apache-maven-3.9.11-bin.tar.gz'
52+
MYMVN_URL='https://dlcdn.apache.org/maven/maven-3/3.9.12/binaries/apache-maven-3.9.12-bin.tar.gz'
5353

5454
MYTMPDIR='.tmp'
5555
MYCODECOV="$MYTMPDIR/codecov.sh"
@@ -394,7 +394,7 @@ if [ x"$BUILD_OS_NAME" = x'linux' ]; then
394394
fi
395395
if [ x"$DISTRO" = x'centos' -o x"$DISTRO $VER" = x'ubuntu 14.04' ]; then
396396
mkdir -p "$MYTMPDIR"
397-
curl --retry 3 -S -o "$MYMVNTAR" "$MYMVN_URL"
397+
curl --retry 3 -f -L -S -o "$MYMVNTAR" "$MYMVN_URL"
398398
if [ x"$DISTRO $VER" = x'centos 5' ]; then
399399
# Download here as curl/openssl and root certs are dated on centos5,
400400
# and https downloads don't work.

0 commit comments

Comments
 (0)