Skip to content

Commit

Permalink
Merge pull request #22 from olamy/patch-1
Browse files Browse the repository at this point in the history
use maven central to download Maven distribution
  • Loading branch information
stCarolas committed Jun 23, 2022
2 parents e9b5620 + 04a0b72 commit 2c9dbad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/installer.ts
Expand Up @@ -33,8 +33,8 @@ export async function getMaven(version: string) {

async function downloadMaven(version: string): Promise<string> {
const toolDirectoryName = `apache-maven-${version}`
const downloadUrl =
`https://apache.org/dyn/closer.cgi?filename=maven/maven-3/${version}/binaries/${toolDirectoryName}-bin.tar.gz&action=download`
const downloadUrl =
`https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/${version}/apache-maven-${version}-bin.tar.gz`
console.log(`downloading ${downloadUrl}`)

try {
Expand Down

0 comments on commit 2c9dbad

Please sign in to comment.