capsule-maven-plugin
capsule-maven-plugin copied to clipboard
Warning with JDK11
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by Capsule (file:/Users/vertex/WorkingCopies/jAPlus/AMon/target/AMon-1.0-SNAPSHOT-fat.jar) to field com.sun.jmx.mbeanserver.JmxMBeanServer.mbsInterceptor
WARNING: Please consider reporting this to the maintainers of Capsule
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Until someone fixes the capsule code, here is a workaround which will suppress the warnings:
java --add-opens java.management/com.sun.jmx.mbeanserver=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED -jar <your-app-capsule.jar>