Merge pull request #9 from joewitt/master

Ensures the proper dynamically constructed Apache mirror download is …
This commit is contained in:
stCarolas 2021-04-10 14:43:28 +03:00 committed by GitHub
commit 3c9ddfb1c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,7 +34,7 @@ export async function getMaven(version: string) {
async function downloadMaven(version: string): Promise<string> {
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 {