diff --git a/exo.jcr.component.core/pom.xml b/exo.jcr.component.core/pom.xml
index 083bd43f5..eac22e560 100644
--- a/exo.jcr.component.core/pom.xml
+++ b/exo.jcr.component.core/pom.xml
@@ -388,7 +388,7 @@
org.apache.maven.plugins
maven-surefire-plugin
- @{surefire.argLine} -Djava.net.preferIPv4Stack=true
+ @{argLine} ${env.MAVEN_OPTS} --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED -Djava.net.preferIPv4Stack=true ${debug.opts}
jcr.test.configuration.file
diff --git a/exo.jcr.component.ext/pom.xml b/exo.jcr.component.ext/pom.xml
index d2f94a9e4..b987f89bc 100644
--- a/exo.jcr.component.ext/pom.xml
+++ b/exo.jcr.component.ext/pom.xml
@@ -93,6 +93,7 @@
org.apache.maven.plugins
maven-surefire-plugin
+ @{argLine} ${env.MAVEN_OPTS} --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED ${debug.opts}
jcr.test.configuration.file
diff --git a/exo.jcr.component.ftp/pom.xml b/exo.jcr.component.ftp/pom.xml
index 3d6df88a3..ec4933e17 100644
--- a/exo.jcr.component.ftp/pom.xml
+++ b/exo.jcr.component.ftp/pom.xml
@@ -52,6 +52,12 @@
+
+ maven-surefire-plugin
+
+ @{argLine} ${env.MAVEN_OPTS} --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED
+
+
org.apache.maven.plugins
maven-jar-plugin
diff --git a/exo.jcr.component.webdav/pom.xml b/exo.jcr.component.webdav/pom.xml
index ddd09df20..12157ea14 100644
--- a/exo.jcr.component.webdav/pom.xml
+++ b/exo.jcr.component.webdav/pom.xml
@@ -55,6 +55,7 @@
org.apache.maven.plugins
maven-surefire-plugin
+ @{argLine} ${env.MAVEN_OPTS} --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED
**/TestUtils.java
**/OrderPatchTest.java
diff --git a/exo.jcr.ext.services/pom.xml b/exo.jcr.ext.services/pom.xml
index a2ac0edcd..ef4d74259 100644
--- a/exo.jcr.ext.services/pom.xml
+++ b/exo.jcr.ext.services/pom.xml
@@ -87,7 +87,7 @@
maven-surefire-plugin
- @{argLine} @{surefire.argLine} -Djava.net.preferIPv4Stack=true
+ @{argLine} ${env.MAVEN_OPTS} --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED -Djava.net.preferIPv4Stack=true ${debug.opts}
diff --git a/exo.jcr.framework.command/pom.xml b/exo.jcr.framework.command/pom.xml
index b545a86f1..2b6b23fd5 100644
--- a/exo.jcr.framework.command/pom.xml
+++ b/exo.jcr.framework.command/pom.xml
@@ -52,6 +52,12 @@
+
+ maven-surefire-plugin
+
+ @{argLine} ${env.MAVEN_OPTS} --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED
+
+
maven-antrun-plugin
diff --git a/exo.jcr.framework.ftpclient/pom.xml b/exo.jcr.framework.ftpclient/pom.xml
index 300057c12..0afdd8f9c 100644
--- a/exo.jcr.framework.ftpclient/pom.xml
+++ b/exo.jcr.framework.ftpclient/pom.xml
@@ -61,7 +61,8 @@
org.apache.maven.plugins
maven-surefire-plugin
- true
+ @{argLine} ${env.MAVEN_OPTS}
+ true
**/*.java