Hi Team,

I need to pass jvmArguments in the appassembler-maven-plugin but they are
not working.
We are using embedded cassandra in our application and it tries to access
JDK's internal classes and after JDK 11 Java has put strict checks on
internal class access using reflection . There is one work-around for it
that is to pass packages to access using *--add-exports *option .

I have tried <systemProperty> and </extraJvmArguments> but both are not
working.

I need to pass below arguments to plugin:

-Djdk.attach.allowAttachSelf=true --add-exports
java.base/jdk.internal.misc=ALL-UNNAMED --add-exports
java.base/jdk.internal.ref=ALL-UNNAMED --add-exports
java.base/sun.nio.ch=ALL-UNNAMED
--add-exports
java.management.rmi/com.sun.jmx.remote.internal.rmi=ALL-UNNAMED
--add-exports java.rmi/sun.rmi.registry=ALL-UNNAMED --add-exports
java.rmi/sun.rmi.server=ALL-UNNAMED --add-exports
java.sql/java.sql=ALL-UNNAMED  --add-opens
java.base/java.lang.module=ALL-UNNAMED --add-opens
java.base/jdk.internal.loader=ALL-UNNAMED --add-opens
java.base/jdk.internal.ref=ALL-UNNAMED --add-opens
java.base/jdk.internal.reflect=ALL-UNNAMED --add-opens
java.base/jdk.internal.math=ALL-UNNAMED --add-opens
java.base/jdk.internal.module=ALL-UNNAMED --add-opens
java.base/jdk.internal.util.jar=ALL-UNNAMED --add-opens
jdk.management/com.sun.management.internal=ALL-UNNAMED

Please suggest how to pass these arguments.

Thanks & Regards,
Ankit

-- 
You received this message because you are subscribed to the Google Groups 
"mojohaus-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mojohaus-dev/CAF2GvtEGbApsdPakcapE0yU53hxDjQz3m3zv5%3DfYC7ei2QW2_Q%40mail.gmail.com.

Reply via email to