You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@impala.apache.org by st...@apache.org on 2020/06/24 00:23:38 UTC

[impala] 01/02: IMPALA-9845: Point Maven and Ant downloads to stable locations

This is an automated email from the ASF dual-hosted git repository.

stakiar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/impala.git

commit 839cd0ba5a185cee55d9bb8f5344bda2df7cbbce
Author: Laszlo Gaal <la...@cloudera.com>
AuthorDate: Wed Jun 10 21:23:49 2020 +0200

    IMPALA-9845: Point Maven and Ant downloads to stable locations
    
    Ant released a new version in May 2020, which made the URL in
    bootstrap_system.sh obsolete. At the same time Apache created new rules
    for the download locations, moving older releases to archive.apache.org.
    
    This patch changes the download URLs for Maven and Ant to point to the
    stable locations at archive.apache.org. These locations don't change
    when a new version of a project is released, so downloads pulling a
    specific version will not be affected by a new release. At the same time
    new releases are stored at the archive site as well, so this location
    works for all versions.
    
    Change-Id: I1875f260b931ef096fc91a4723f91310225c55c9
    Reviewed-on: http://gerrit.cloudera.org:8080/16062
    Reviewed-by: Impala Public Jenkins <im...@cloudera.com>
    Tested-by: Impala Public Jenkins <im...@cloudera.com>
---
 bin/bootstrap_system.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/bootstrap_system.sh b/bin/bootstrap_system.sh
index f5eaa24..b3c1401 100755
--- a/bin/bootstrap_system.sh
+++ b/bin/bootstrap_system.sh
@@ -286,7 +286,7 @@ redhat sudo yum clean all
 
 # Download ant for centos
 redhat sudo wget -nv \
-  https://downloads.apache.org/ant/binaries/apache-ant-1.9.14-bin.tar.gz
+  https://archive.apache.org/dist/ant/binaries/apache-ant-1.9.14-bin.tar.gz
 redhat sudo sha512sum -c - <<< '487dbd1d7f678a92924ba884a57e910ccb4fe565c554278795a8fdfc80c4e88d81ebc2ccecb5a8f353f0b2076572bb921499a2cadb064e0f44fc406a3c31da20  apache-ant-1.9.14-bin.tar.gz'
 redhat sudo tar -C /usr/local -xzf apache-ant-1.9.14-bin.tar.gz
 redhat sudo ln -sf /usr/local/apache-ant-1.9.14/bin/ant /usr/local/bin
@@ -295,7 +295,7 @@ redhat sudo ln -sf /usr/local/apache-ant-1.9.14/bin/ant /usr/local/bin
 # pretty old.
 if [ ! -d /usr/local/apache-maven-3.5.4 ]; then
   sudo wget -nv \
-    https://downloads.apache.org/maven/maven-3/3.5.4/binaries/apache-maven-3.5.4-bin.tar.gz
+    https://archive.apache.org/dist/maven/maven-3/3.5.4/binaries/apache-maven-3.5.4-bin.tar.gz
   sudo sha512sum -c - <<< '2a803f578f341e164f6753e410413d16ab60fabe31dc491d1fe35c984a5cce696bc71f57757d4538fe7738be04065a216f3ebad4ef7e0ce1bb4c51bc36d6be86  apache-maven-3.5.4-bin.tar.gz'
   sudo tar -C /usr/local -x --no-same-owner -zf apache-maven-3.5.4-bin.tar.gz
   sudo ln -sf /usr/local/apache-maven-3.5.4/bin/mvn /usr/local/bin