Skip to content

Commit

Permalink
apacheGH-37022: [CI][Java] Use the official Maven download URL
Browse files Browse the repository at this point in the history
If we use https://dlcdn.apache.org/ instead of
https://www.apache.org/dyn/closer.lua , old source archived can't be
downloaded.
  • Loading branch information
kou committed Aug 11, 2023
1 parent e51f442 commit d08fc3f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ci/docker/java-jni-manylinux-201x.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit d08fc3f

Please sign in to comment.