Skip to content

Commit 9beb2ed

Browse files
author
Simon Zeltser
authored
fix: update CI to use maven 3.8.1 (#662)
Gitbub Action updated LTS(18.04, 20.04) versions of Github-Hosted runners for Ubuntu with the latest version of Apache Maven. The new version of Ubuntu has Apache Maven 3.8.2 which is incompatible with flatten-maven-plugin:1.2.7. This caused all github actions using the latest Ubuntu version to fail with this error. The immediate solution is to use this community action to install maven 3.8.1 at runtime.
1 parent 6ff7548 commit 9beb2ed

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

‎.github/workflows/ci.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ jobs:
1111
matrix:
1212
java: [8, 11]
1313
steps:
14+
- uses: stCarolas/setup-maven@v4
15+
with:
16+
maven-version: 3.8.1
1417
- uses: actions/checkout@v2
1518
- uses: actions/setup-java@v1
1619
with:
@@ -22,6 +25,9 @@ jobs:
2225
windows:
2326
runs-on: windows-latest
2427
steps:
28+
- uses: stCarolas/setup-maven@v4
29+
with:
30+
maven-version: 3.8.1
2531
- uses: actions/checkout@v2
2632
- uses: actions/setup-java@v1
2733
with:
@@ -36,6 +42,9 @@ jobs:
3642
matrix:
3743
java: [8, 11]
3844
steps:
45+
- uses: stCarolas/setup-maven@v4
46+
with:
47+
maven-version: 3.8.1
3948
- uses: actions/checkout@v2
4049
- uses: actions/setup-java@v1
4150
with:
@@ -45,6 +54,9 @@ jobs:
4554
linkage-monitor:
4655
runs-on: ubuntu-latest
4756
steps:
57+
- uses: stCarolas/setup-maven@v4
58+
with:
59+
maven-version: 3.8.1
4860
- uses: actions/checkout@v2
4961
- uses: actions/setup-java@v1
5062
with:
@@ -58,6 +70,9 @@ jobs:
5870
lint:
5971
runs-on: ubuntu-latest
6072
steps:
73+
- uses: stCarolas/setup-maven@v4
74+
with:
75+
maven-version: 3.8.1
6176
- uses: actions/checkout@v2
6277
- uses: actions/setup-java@v1
6378
with:
@@ -69,6 +84,9 @@ jobs:
6984
clirr:
7085
runs-on: ubuntu-latest
7186
steps:
87+
- uses: stCarolas/setup-maven@v4
88+
with:
89+
maven-version: 3.8.1
7290
- uses: actions/checkout@v2
7391
- uses: actions/setup-java@v1
7492
with:

0 commit comments

Comments
 (0)