Merge pull request #22 from olamy/patch-1

use maven central to download Maven distribution
This commit is contained in:
stCarolas 2022-06-23 11:36:36 +03:00 committed by GitHub
commit 2c9dbada0b
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> { async function downloadMaven(version: string): Promise<string> {
const toolDirectoryName = `apache-maven-${version}` const toolDirectoryName = `apache-maven-${version}`
const downloadUrl = const downloadUrl =
`https://apache.org/dyn/closer.cgi?filename=maven/maven-3/${version}/binaries/${toolDirectoryName}-bin.tar.gz&action=download` `https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/${version}/apache-maven-${version}-bin.tar.gz`
console.log(`downloading ${downloadUrl}`) console.log(`downloading ${downloadUrl}`)
try { try {