4 Commits
v4.3 ... v4.4

Author SHA1 Message Date
stCarolas
417e1a9899 update readme for new version 2022-06-23 11:40:07 +03:00
stCarolas
2c9dbada0b Merge pull request #22 from olamy/patch-1
use maven central to download Maven distribution
2022-06-23 11:36:36 +03:00
Olivier Lamy
04a0b721de use maven central to download Maven distribution
using Apache download too much can lead to IP block
2022-06-16 06:59:28 +10:00
stCarolas
e9b562018d Update README.md 2022-03-05 13:28:10 +03:00
2 changed files with 3 additions and 3 deletions

View File

@@ -4,7 +4,7 @@ Add this step into workflow
```
- name: Set up Maven
uses: stCarolas/setup-maven@v4.2
uses: stCarolas/setup-maven@v4.4
with:
maven-version: 3.8.2
```

View File

@@ -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 {