Skip to content

Commit

Permalink
chore(superchain): fix maven downloads failing due to outdated urls (#…
Browse files Browse the repository at this point in the history
…4394)

These are now downloaded from https://downloads.apache.org/

---

By submitting this pull request, I confirm that my contribution is made under the terms of the [Apache 2.0 license].

[Apache 2.0 license]: https://www.apache.org/licenses/LICENSE-2.0
  • Loading branch information
mrgrain committed Jan 9, 2024
1 parent 37d9dc7 commit 5ed94fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions superchain/Dockerfile
Expand Up @@ -51,14 +51,14 @@ SHELL ["/bin/zsh", "-c"]

# Prepare maven binary distribution
ARG M2_VERSION="3.9.4"
ENV M2_DISTRO="https://www.apache.org/dist/maven/maven-3"
ENV M2_DISTRO="https://downloads.apache.org/maven/maven-3"
RUN set -eo pipefail \
&& curl -fSsL "${M2_DISTRO}/${M2_VERSION}/binaries/apache-maven-${M2_VERSION}-bin.tar.gz" \
-o /tmp/apache-maven.tar.gz \
&& curl -fSsL "${M2_DISTRO}/${M2_VERSION}/binaries/apache-maven-${M2_VERSION}-bin.tar.gz.asc" \
-o /tmp/apache-maven.tar.gz.asc \
&& mkdir -p /tmp/gpg-maven && chmod go-rwx /tmp/gpg-maven \
&& curl -fSsL "https://www.apache.org/dist/maven/KEYS" | gpg --homedir /tmp/gpg-maven --import \
&& curl -fSsL "https://downloads.apache.org/maven/KEYS" | gpg --homedir /tmp/gpg-maven --import \
&& gpg --homedir /tmp/gpg-maven --verify /tmp/apache-maven.tar.gz.asc /tmp/apache-maven.tar.gz \
&& mkdir -p /opt/apache/maven \
&& tar xzf /tmp/apache-maven.tar.gz -C /opt/apache/maven --strip-components=1
Expand Down

0 comments on commit 5ed94fd

Please sign in to comment.