Skip to content

Commit 886130c

Browse files
pin maven from echo (#504)
1 parent a16078a commit 886130c

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,10 +162,9 @@ jobs:
162162
# Maven 3.10+ breaks central-publishing-maven-plugin bundling (upstream bug)
163163
run: |
164164
MAVEN_VERSION=3.9.16
165-
curl -fsSL -o /tmp/maven.tar.gz "https://archive.apache.org/dist/maven/maven-3/${MAVEN_VERSION}/binaries/apache-maven-${MAVEN_VERSION}-bin.tar.gz"
166-
curl -fsSL -o /tmp/maven.tar.gz.sha512 "https://archive.apache.org/dist/maven/maven-3/${MAVEN_VERSION}/binaries/apache-maven-${MAVEN_VERSION}-bin.tar.gz.sha512"
167-
echo "$(cat /tmp/maven.tar.gz.sha512) /tmp/maven.tar.gz" | sha512sum -c -
168-
sudo tar -xzf /tmp/maven.tar.gz -C /opt
165+
# Resolved through the echo-repo mirror configured in ~/.m2/settings.xml above
166+
mvn -B -q dependency:copy -Dartifact=org.apache.maven:apache-maven:${MAVEN_VERSION}:tar.gz:bin -DoutputDirectory=/tmp/maven-dist
167+
sudo tar -xzf /tmp/maven-dist/apache-maven-${MAVEN_VERSION}-bin.tar.gz -C /opt
169168
echo "/opt/apache-maven-${MAVEN_VERSION}/bin" >> $GITHUB_PATH
170169
171170
- name: Update the POM version.

0 commit comments

Comments
 (0)