Skip to content

Commit

Permalink
Merge pull request #1737 from lat-lon/fix/jvmArgsJetty-1464
Browse files Browse the repository at this point in the history
Added property with add-opens, add-exports JVM arguments
  • Loading branch information
copierrj authored Nov 6, 2024
2 parents 8a4c234 + 843bfe3 commit 2f38b77
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion deegree-services/deegree-webservices/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
<port>8080</port>
<idleTimeout>60000</idleTimeout>
</httpConnector>
<jvmArgs>--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</jvmArgs>
<jvmArgs>${jvm.args}</jvmArgs>
</configuration>
</plugin>
</plugins>
Expand Down
2 changes: 1 addition & 1 deletion deegree-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
<jetty.home>${project.basedir}/src/main/resources</jetty.home>
<javax.xml.transform.TransformerFactory>net.sf.saxon.TransformerFactoryImpl</javax.xml.transform.TransformerFactory>
</systemProperties>
<jvmArgs>${jvm.args}</jvmArgs>
<loginServices>
<loginService implementation="org.eclipse.jetty.security.HashLoginService">
<name>deegree web configuration API</name>
Expand All @@ -77,7 +78,6 @@
<goal>start</goal>
</goals>
<configuration>
<scanIntervalSeconds>0</scanIntervalSeconds>
</configuration>
</execution>
<execution>
Expand Down
8 changes: 3 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,7 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>3.5.0</version>
<configuration>
<!-- Travis build workaround -->
<argLine>-Djava.awt.headless=true -Dfile.encoding=UTF-8 -Xms1024m -Xmx2048m --illegal-access=permit
<argLine>-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
Expand All @@ -170,9 +169,7 @@
<artifactId>maven-failsafe-plugin</artifactId>
<version>3.5.0</version>
<configuration>
<argLine>
--illegal-access=permit
</argLine>
<argLine>${jvm.args}</argLine>
</configuration>
</plugin>
<!-- reporting and site -->
Expand Down Expand Up @@ -1238,6 +1235,7 @@
<axiom.version>1.4.0</axiom.version>
<jsonpath.version>2.9.0</jsonpath.version>
<jsonsmart.version>2.5.1</jsonsmart.version>
<jvm.args>--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</jvm.args>
</properties>

<modules>
Expand Down

0 comments on commit 2f38b77

Please sign in to comment.