Skip to content

Commit d08fc3f

Browse files
committed
GH-37022: [CI][Java] Use the official Maven download URL
If we use https://dlcdn.apache.org/ instead of https://www.apache.org/dyn/closer.lua , old source archived can't be downloaded.
1 parent e51f442 commit d08fc3f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ci/docker/java-jni-manylinux-201x.dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ ARG java=1.8.0
3737
ARG maven=3.9.3
3838
RUN yum install -y java-$java-openjdk-devel && \
3939
yum clean all && \
40-
curl https://dlcdn.apache.org/maven/maven-3/${maven}/binaries/apache-maven-${maven}-bin.tar.gz | \
40+
curl \
41+
--fail \
42+
--location \
43+
"https://www.apache.org/dyn/closer.lua?action=download&filename=maven/maven-3/${maven}/binaries/apache-maven-${maven}-bin.tar.gz" | \
4144
tar xfz - -C /usr/local && \
4245
ln -s /usr/local/apache-maven-${maven}/bin/mvn /usr/local/bin
4346

0 commit comments

Comments
 (0)