From 25f7163d53ccb2349dd5cb37a9ceeb956f16e415 Mon Sep 17 00:00:00 2001 From: Joe Witt Date: Fri, 9 Apr 2021 09:19:11 -0700 Subject: [PATCH] Ensures the proper dynamically constructed Apache mirror download is used instead of apache archive server which would cap/block at a certain download capacity --- src/installer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/installer.ts b/src/installer.ts index d791f18..c8aad35 100644 --- a/src/installer.ts +++ b/src/installer.ts @@ -34,7 +34,7 @@ export async function getMaven(version: string) { async function downloadMaven(version: string): Promise { const toolDirectoryName = `apache-maven-${version}` const downloadUrl = - `https://archive.apache.org/dist/maven/maven-3/${version}/binaries/${toolDirectoryName}-bin.tar.gz` + `https://apache.org/dyn/closer.cgi?filename=maven/maven-3/${version}/binaries/${toolDirectoryName}-bin.tar.gz&action=download` console.log(`downloading ${downloadUrl}`) try {