diff --git a/deegree-services/deegree-webservices/pom.xml b/deegree-services/deegree-webservices/pom.xml
index 05e397f56d..446a294636 100644
--- a/deegree-services/deegree-webservices/pom.xml
+++ b/deegree-services/deegree-webservices/pom.xml
@@ -99,7 +99,7 @@
8080
60000
- --illegal-access=warn --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.desktop/com.sun.imageio.spi=ALL-UNNAMED --add-opens java.desktop/javax.imageio.spi=ALL-UNNAMED --add-exports java.desktop/sun.awt=ALL-UNNAMED --add-exports java.desktop/com.sun.imageio.spi=ALL-UNNAMED --add-exports java.desktop/sun.swing=ALL-UNNAMED --add-opens java.desktop/javax.imageio.spi=ALL-UNNAMED
+ ${jvm.args}
diff --git a/deegree-tests/pom.xml b/deegree-tests/pom.xml
index 31a423b5d9..382ad0a8ec 100644
--- a/deegree-tests/pom.xml
+++ b/deegree-tests/pom.xml
@@ -46,7 +46,6 @@
org.eclipse.jetty
jetty-maven-plugin
- 10
${jetty.stop.port}
STOP
10
@@ -58,6 +57,7 @@
${project.basedir}/src/main/resources
net.sf.saxon.TransformerFactoryImpl
+ ${jvm.args}
deegree web configuration API
@@ -78,7 +78,6 @@
start
- 0
diff --git a/pom.xml b/pom.xml
index 30b0cb8439..a05cd2547a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -146,8 +146,7 @@
maven-surefire-plugin
3.3.0
-
- -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Xms1024m -Xmx2048m --illegal-access=permit
+ -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Xms1024m -Xmx2048m
--add-opens java.base/java.lang=ALL-UNNAMED
--add-opens java.base/java.net=ALL-UNNAMED
--add-opens java.base/java.util=ALL-UNNAMED
@@ -163,9 +162,7 @@
maven-failsafe-plugin
3.3.0
-
- --illegal-access=permit
-
+ ${jvm.args}
@@ -1215,6 +1212,7 @@
1.4.0
2.9.0
2.5.1
+ --add-exports java.desktop/sun.awt=ALL-UNNAMED --add-exports java.desktop/com.sun.imageio.spi=ALL-UNNAMED --add-exports java.desktop/sun.swing=ALL-UNNAMED --add-opens java.desktop/javax.imageio.spi=ALL-UNNAMED --add-opens java.desktop/com.sun.imageio.spi=ALL-UNNAMED