Skip to content

[CI][Java] Maven 3.9.3 causing Docker build failure #37022

@zinking

Description

@zinking

Describe the bug, including details regarding any error messages, version, and platform.

running:

archery docker run java-jni-manylinux-2014

causing

java-jni-manylinux-201x.dockerfile:38
--------------------
  37 |     ARG maven=3.9.3
  38 | >>> RUN yum install -y java-$java-openjdk-devel && \
  39 | >>>       yum clean all && \
  40 | >>>       curl https://dlcdn.apache.org/maven/maven-3/${maven}/binaries/apache-maven-${maven}-bin.tar.gz | \
  41 | >>>         tar xfz - -C /usr/local && \
  42 | >>>       ln -s /usr/local/apache-maven-${maven}/bin/mvn /usr/local/bin
  43 |
--------------------
ERROR: failed to solve: process "/bin/bash -i -c 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 |         tar xfz - -C /usr/local &&       ln -s /usr/local/apache-maven-${maven}/bin/mvn /usr/local/bin" did not complete successfully: exit code: 2
Service 'java-jni-manylinux-2014' failed to build
Error: `docker-compose --file /root/zhenw/arrow/docker-compose.yml build --build-arg BUILDKIT_INLINE_CACHE=1 java-jni-manylinux-2014` exited with a non-zero exit code 1, see the process log above.

it seems the link for maven version 3.5.4 is no longer available

curl https://dlcdn.apache.org/maven/maven-3/3.5.4/binaries/apache-maven-3.5.4-bin.tar.gz
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL was not found on this server.</p>
</body></html>

Component(s)

Release

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions