This prevents the following error when building to native using the following environment:
native-image 21 2023-09-19
OpenJDK Runtime Environment Mandrel-23.1.0.0-Final (build 21+35-LTS)
OpenJDK 64-Bit Server VM Mandrel-23.1.0.0-Final (build 21+35-LTS, mixed mode)
Error:
Caused by: java.lang.IllegalAccessError: class io.quarkiverse.poi.runtime.graal.POIFeature (in unnamed module @0x127e70c5) cannot access class org.graalvm.nativeimage.impl.RuntimeClassInitializationSupport (in module org.graalvm.nativeimage) because module org.graalvm.nativeimage does not export org.graalvm.nativeimage.impl to unnamed module @0x127e70c5
This prevents the following error when building to native using the following environment:
Error: