From 54369254cfb0025b675204acccb4a456ffa1a5e1 Mon Sep 17 00:00:00 2001 From: Chad Wilson Date: Thu, 5 Sep 2024 22:50:57 +0800 Subject: [PATCH] Use CDN for Ant/Maven downloads --- provision/provision-common.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/provision/provision-common.sh b/provision/provision-common.sh index a0aedcb..5030e30 100644 --- a/provision/provision-common.sh +++ b/provision/provision-common.sh @@ -82,7 +82,7 @@ function install_awscli() { function install_maven() { local version="$1" try mkdir -p /opt/local/ - try curl --silent --fail --location http://archive.apache.org/dist/maven/maven-3/${version}/binaries/apache-maven-${version}-bin.zip --output /usr/local/src/apache-maven-${version}-bin.zip + try curl --silent --fail --location https://dlcdn.apache.org/maven/maven-3/${version}/binaries/apache-maven-${version}-bin.zip --output /usr/local/src/apache-maven-${version}-bin.zip try unzip -q /usr/local/src/apache-maven-${version}-bin.zip -d /opt/local try ln -sf /opt/local/apache-maven-${version}/bin/mvn /usr/local/bin/mvn } @@ -90,7 +90,7 @@ function install_maven() { function install_ant() { local version="$1" try mkdir -p /opt/local/ - try curl --silent --fail --location http://archive.apache.org/dist/ant/binaries/apache-ant-${version}-bin.zip --output /usr/local/src/apache-ant-${version}-bin.zip + try curl --silent --fail --location https://dlcdn.apache.org/ant/binaries/apache-ant-${version}-bin.zip --output /usr/local/src/apache-ant-${version}-bin.zip try unzip -q /usr/local/src/apache-ant-${version}-bin.zip -d /opt/local try ln -sf /opt/local/apache-ant-${version}/bin/ant /usr/local/bin/ant }