Skip to content

Commit b73c56e

Browse files
committed
Turn off Maven connection pooling to avoid connection issues on CI
The problem and solution are explained in actions/runner-images#1499 (comment)
1 parent c696146 commit b73c56e

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ name: CI
22

33
on: [push, pull_request]
44

5+
env:
6+
MAVEN_ARGS: >-
7+
-V -B --no-transfer-progress
8+
-Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120
9+
510
jobs:
611
linux_maven:
712
strategy:
@@ -18,7 +23,7 @@ jobs:
1823
with:
1924
java-version: ${{ matrix.java }}
2025
- name: 'Test'
21-
run: ./mvnw -V -B -U clean verify
26+
run: ./mvnw ${MAVEN_ARGS} -U clean verify
2227
linux_gradle:
2328
strategy:
2429
fail-fast: false
@@ -45,7 +50,7 @@ jobs:
4550
with:
4651
java-version: 8
4752
- name: 'Test'
48-
run: ./mvnw -V -B -U clean verify
53+
run: ./mvnw ${MAVEN_ARGS} -U clean verify
4954
mac_maven:
5055
name: 'Mac OS'
5156
runs-on: macos-latest
@@ -56,4 +61,4 @@ jobs:
5661
with:
5762
java-version: 8
5863
- name: 'Test'
59-
run: ./mvnw -V -B -U clean verify
64+
run: ./mvnw ${MAVEN_ARGS} -U clean verify

0 commit comments

Comments
 (0)