diff --git a/ci/docker/java-jni-manylinux-201x.dockerfile b/ci/docker/java-jni-manylinux-201x.dockerfile index e9888db7c5332..207bea72b5375 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