diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 5ba702d05..b8a55edd5 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -55,11 +55,7 @@ jobs:
restore-keys: |
${{ runner.os }}-m2
- name: Test with Maven
- if: ${{ matrix.java == '8' }}
run: ./mvnw test -B -Dmaven.test.skip=false
- - name: Test with Maven
- if: ${{ matrix.java != '8' }}
- run: ./mvnw test -B -Dmaven.test.skip=false -DargLine="--add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/sun.reflect.annotation=ALL-UNNAMED"
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: (!cancelled())
diff --git a/pom.xml b/pom.xml
index b4f92f0d2..0397df485 100644
--- a/pom.xml
+++ b/pom.xml
@@ -228,7 +228,9 @@
maven-surefire-plugin
${maven-surefire-plugin.version}
- ${argLine} -Dfile.encoding=UTF-8
+
+ ${argLine} ${surefireArgLine}
+
@@ -413,8 +415,8 @@
-
-
+
+
true
4
@@ -445,4 +447,24 @@
+
+
+ jdk9plus
+
+ [9,)
+
+
+ --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/sun.reflect.annotation=ALL-UNNAMED -Dfile.encoding=UTF-8
+
+
+
+ jdk8
+
+ 1.8
+
+
+ -Dfile.encoding=UTF-8
+
+
+