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

kou pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/main by this push:
     new faf41a9425 GH-37022: [CI][Java] Use the official Maven download URL 
(#37119)
faf41a9425 is described below

commit faf41a9425a532e541c8095cfb37396041e7a1d5
Author: Sutou Kouhei <[email protected]>
AuthorDate: Fri Aug 11 16:08:14 2023 +0900

    GH-37022: [CI][Java] Use the official Maven download URL (#37119)
    
    ### Rationale for this change
    
    If we use https://dlcdn.apache.org/ instead of
    https://www.apache.org/dyn/closer.lua , old source archived can't be 
downloaded.
    
    ### What changes are included in this PR?
    
    Use https://www.apache.org/dyn/closer.lua .
    
    ### Are these changes tested?
    
    Yes.
    
    ### Are there any user-facing changes?
    
    No.
    * Closes: #37022
    
    Authored-by: Sutou Kouhei <[email protected]>
    Signed-off-by: Sutou Kouhei <[email protected]>
---
 ci/docker/java-jni-manylinux-201x.dockerfile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/ci/docker/java-jni-manylinux-201x.dockerfile 
b/ci/docker/java-jni-manylinux-201x.dockerfile
index e9888db7c5..207bea72b5 100644
--- a/ci/docker/java-jni-manylinux-201x.dockerfile
+++ b/ci/docker/java-jni-manylinux-201x.dockerfile
@@ -37,7 +37,10 @@ ARG java=1.8.0
 ARG maven=3.9.3
 RUN yum install -y java-$java-openjdk-devel && \
       yum clean all && \
-      curl 
https://dlcdn.apache.org/maven/maven-3/${maven}/binaries/apache-maven-${maven}-bin.tar.gz
 | \
+      curl \
+        --fail \
+        --location \
+        
"https://www.apache.org/dyn/closer.lua?action=download&filename=maven/maven-3/${maven}/binaries/apache-maven-${maven}-bin.tar.gz";
 | \
         tar xfz - -C /usr/local && \
       ln -s /usr/local/apache-maven-${maven}/bin/mvn /usr/local/bin
 

Reply via email to