From 42164319a3f2cda8ef527d781b0fb3ae09048874 Mon Sep 17 00:00:00 2001 From: Bastien Teinturier <31281497+t-bast@users.noreply.github.com> Date: Tue, 4 Jul 2023 16:47:19 +0200 Subject: [PATCH] Use apache archives for mvn in Docker build (#2706) The previous repository we used removed the binaries for mvn 3.9.2, which broke our docker build. It looks like `archive.apache.org` keeps artifacts longer and hopefully won't break our docker build again soon. --- Dockerfile | 2 +- contrib/arm64v8.Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 137b5cfa0..6e9894121 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ RUN apk add --no-cache curl tar bash ARG MAVEN_VERSION=3.9.2 ARG USER_HOME_DIR="/root" ARG SHA=900bdeeeae550d2d2b3920fe0e00e41b0069f32c019d566465015bdd1b3866395cbe016e22d95d25d51d3a5e614af2c83ec9b282d73309f644859bbad08b63db -ARG BASE_URL=https://apache.osuosl.org/maven/maven-3/${MAVEN_VERSION}/binaries +ARG BASE_URL=https://archive.apache.org/dist/maven/maven-3/${MAVEN_VERSION}/binaries RUN mkdir -p /usr/share/maven /usr/share/maven/ref \ && curl -fsSL -o /tmp/apache-maven.tar.gz ${BASE_URL}/apache-maven-${MAVEN_VERSION}-bin.tar.gz \ diff --git a/contrib/arm64v8.Dockerfile b/contrib/arm64v8.Dockerfile index 6becdd580..f828828ea 100644 --- a/contrib/arm64v8.Dockerfile +++ b/contrib/arm64v8.Dockerfile @@ -8,7 +8,7 @@ RUN apt update && apt install -y curl tar bash ARG MAVEN_VERSION=3.9.2 ARG USER_HOME_DIR="/root" ARG SHA=900bdeeeae550d2d2b3920fe0e00e41b0069f32c019d566465015bdd1b3866395cbe016e22d95d25d51d3a5e614af2c83ec9b282d73309f644859bbad08b63db -ARG BASE_URL=https://apache.osuosl.org/maven/maven-3/${MAVEN_VERSION}/binaries +ARG BASE_URL=https://archive.apache.org/dist/maven/maven-3/${MAVEN_VERSION}/binaries RUN mkdir -p /usr/share/maven /usr/share/maven/ref \ && curl -fsSL -o /tmp/apache-maven.tar.gz ${BASE_URL}/apache-maven-${MAVEN_VERSION}-bin.tar.gz \