diff --git a/.github/workflows/maven-build.yml b/.github/workflows/maven-build.yml
index 8a2b59f8d8..2fa86ff42a 100644
--- a/.github/workflows/maven-build.yml
+++ b/.github/workflows/maven-build.yml
@@ -30,7 +30,7 @@ jobs:
- name: Maven Install (skipTests)
env:
MAVEN_OPTS: ${{ env.JAVA_11_PLUS_MAVEN_OPTS }}
- run: mvn -B install -DskipTests -D enable-ci --file pom.xml
+ run: mvn -B install -DskipTests --file pom.xml
site:
name: site (Java ${{ matrix.java }})
runs-on: ubuntu-latest
diff --git a/pom.xml b/pom.xml
index 1e62898458..e13135e546 100644
--- a/pom.xml
+++ b/pom.xml
@@ -46,6 +46,7 @@
false
0.11.2
+
@@ -107,6 +108,9 @@
prepare-agent
+
+ jacoco.surefire.argLine
+
@@ -274,7 +278,7 @@
default-test
src/test/resources/slow-or-flaky-tests.txt
- ${surefire.argLine}
+ @{jacoco.surefire.argLine} ${surefire.argLine}
@@ -582,7 +586,7 @@
src/test/resources/slow-or-flaky-tests.txt
- ${surefire.argLine}
+ @{jacoco.surefire.argLine} ${surefire.argLine}
@@ -642,6 +646,30 @@
+
+ org.apache.maven.plugins
+ maven-enforcer-plugin
+ 3.0.0-M3
+
+
+ enforce-jacoco-exist
+ verify
+
+ enforce
+
+
+
+
+
+ ${project.build.directory}/jacoco.exec
+
+
+
+ true
+
+
+
+