Skip to content

Commit

Permalink
Add add-opens to be able to run Anonimatron in newer jvms (#234)
Browse files Browse the repository at this point in the history
Add add-opens to be able to run Anonimatron in newer (but downwards compatible) java versions

Co-authored-by: Rolf <[email protected]>
  • Loading branch information
realrolfje and Rolf authored Sep 1, 2024
1 parent b588721 commit 0f23209
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
14 changes: 11 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.10.1</version>
<version>3.12.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
Expand All @@ -144,10 +144,18 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.2.2</version>
<configuration>
<argLine>--add-opens java.xml/com.sun.org.apache.xml.internal.serialize=ALL-UNNAMED</argLine>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.4.1</version>
<version>3.6.3</version>
<configuration>
<stylesheetfile>${basedir}/src/javadoc/stylesheet.css</stylesheetfile>
</configuration>
Expand Down Expand Up @@ -194,7 +202,7 @@
<!-- Signs all deployable artifacts during "verify" stage -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.1.0</version>
<version>3.2.2</version>
<executions>
<execution>
<id>sign-artifacts</id>
Expand Down
2 changes: 1 addition & 1 deletion resources/scripts/anonimatron.bat
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@echo off
java -Xmx2G -classpath *;./libraries/*;./jdbcdrivers/*;./anonymizers/* com.rolfje.anonimatron.Anonimatron %*
java -Xmx2G --add-opens java.xml/com.sun.org.apache.xml.internal.serialize=ALL-UNNAMED -classpath *;./libraries/*;./jdbcdrivers/*;./anonymizers/* com.rolfje.anonimatron.Anonimatron %*
2 changes: 1 addition & 1 deletion resources/scripts/anonimatron.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
set -e
cd -P "$(dirname $0)"
java ${JAVA_OPTS:='-Xmx2G'} -classpath *:./libraries/*:./jdbcdrivers/*:./anonymizers/* com.rolfje.anonimatron.Anonimatron $*
java ${JAVA_OPTS:='-Xmx2G'} --add-opens java.xml/com.sun.org.apache.xml.internal.serialize=ALL-UNNAMED -classpath *:./libraries/*:./jdbcdrivers/*:./anonymizers/* com.rolfje.anonimatron.Anonimatron $*
cd -

0 comments on commit 0f23209

Please sign in to comment.