Skip to content

Commit

Permalink
Ensures the proper dynamically constructed Apache mirror download is …
Browse files Browse the repository at this point in the history
…used instead of apache archive server which would cap/block at a certain download capacity
  • Loading branch information
joewitt committed Apr 9, 2021
1 parent d55bf2a commit 25f7163
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 25f7163

Please sign in to comment.