diff --git a/forms/README.md b/forms/README.md index 6edc3ab9..69b7a9d7 100644 --- a/forms/README.md +++ b/forms/README.md @@ -59,13 +59,12 @@ This module is packaged as a fat jar. For testing purposes, the default configur You can run the forms module just as any module of dg-toolkit: - `java -Dspring.profiles.active=dev -jar target/forms-0.0.1-SNAPSHOT.jar --illegal-access=warn` +`java @argfile.txt -Dspring.profiles.active=dev -jar target/forms-0.0.1-SNAPSHOT.jar` This will start everything, including an embedded Tomcat Web server and all the services attached it. -`--illegal-access=warn` is needed in JDK 16 until other dependencies are migrated. -Use `--illegal-access=permit` to keep the logs clear from such warnings. -See [#364](https://github.com/devgateway/dg-toolkit/issues/364). +`@argfile.txt` stores additional VM arguments, in particular to grant reflective access to +specific modules for other modules. Use `@$MODULE_DIR$/src/main/resources/argfile.txt` in IDE. # Using Spring Boot Developer Tools diff --git a/forms/src/main/resources/argfile.txt b/forms/src/main/resources/argfile.txt new file mode 100644 index 00000000..3480a840 --- /dev/null +++ b/forms/src/main/resources/argfile.txt @@ -0,0 +1,4 @@ +--add-opens java.naming/javax.naming=ALL-UNNAMED +--add-opens java.base/java.lang.reflect=ALL-UNNAMED +--add-opens java.base/java.lang.ref=ALL-UNNAMED +--add-opens java.base/java.lang=ALL-UNNAMED diff --git a/pom.xml b/pom.xml index 58b0a252..af881e76 100644 --- a/pom.xml +++ b/pom.xml @@ -212,8 +212,8 @@ maven-compiler-plugin ${maven-compiler-plugin.version} - 16 - 16 + ${java.version} + ${java.version} diff --git a/web/README.md b/web/README.md index ead31193..af5be5d3 100644 --- a/web/README.md +++ b/web/README.md @@ -13,11 +13,10 @@ The web module is part of its larger dg-toolkit parent build, so you need to bui Because it gets packaged as a fat jar, starting it is piece of cake: -`java -jar target/web-0.0.1-SNAPSHOT.jar --illegal-access=warn` +`java @argfile.txt -jar target/web-0.0.1-SNAPSHOT.jar` -`--illegal-access=warn` is needed in JDK 16 until other dependencies are migrated. -Use `--illegal-access=permit` to keep the logs clear from such warnings. -See [#364](https://github.com/devgateway/dg-toolkit/issues/364). +`@argfile.txt` stores additional VM arguments, in particular to grant reflective access to +specific modules for other modules. This will start everything, including an embedded Tomcat Web server and all the services attached it.