Ensures the proper dynamically constructed Apache mirror download is used instead of apache archive server which would cap/block at a certain download capacity

This commit is contained in:
Joe Witt 2021-04-09 09:19:11 -07:00
parent d55bf2a4b0
commit 25f7163d53
No known key found for this signature in database
GPG Key ID: 9093BF854F811A1A

View File

@ -34,7 +34,7 @@ export async function getMaven(version: string) {
async function downloadMaven(version: string): Promise<string> { async function downloadMaven(version: string): Promise<string> {
const toolDirectoryName = `apache-maven-${version}` const toolDirectoryName = `apache-maven-${version}`
const downloadUrl = 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}`) console.log(`downloading ${downloadUrl}`)
try { try {