Skip to content

Commit

Permalink
Use CDN for Ant/Maven downloads
Browse files Browse the repository at this point in the history
  • Loading branch information
chadlwilson committed Sep 5, 2024
1 parent b06f7a6 commit 5436925
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions provision/provision-common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,15 @@ 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
}

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
}
Expand Down

0 comments on commit 5436925

Please sign in to comment.