You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're trying to use -H:+UnlockExperimentalVMOptions option in native-maven-plugin to get rid form native compilation warnings:
14 26.97 Warning: The option '-H:ReflectionConfigurationResources=META-INF/native-image/org.apache.tomcat.embed/tomcat-embed-websocket/tomcat-reflection.json' is experimental and must be enabled via '-H:+UnlockExperimentalVMOptions' in the future.
14 26.97 Warning: The option '-H:ReflectionConfigurationResources=META-INF/native-image/org.apache.tomcat.embed/tomcat-embed-el/tomcat-reflection.json' is experimental and must be enabled via '-H:+UnlockExperimentalVMOptions' in the future.
14 26.97 Warning: The option '-H:ResourceConfigurationResources=META-INF/native-image/org.apache.tomcat.embed/tomcat-embed-core/tomcat-resource.json' is experimental and must be enabled via '-H:+UnlockExperimentalVMOptions' in the future.
14 26.97 Warning: The option '-H:ReflectionConfigurationResources=META-INF/native-image/org.apache.tomcat.embed/tomcat-embed-core/tomcat-reflection.json' is experimental and must be enabled via '-H:+UnlockExperimentalVMOptions' in the future.
14 26.97 Warning: The option '-H:IncludeResources=rabbitmq-amqp-client.properties|version.properties' is experimental and must be enabled via '-H:+UnlockExperimentalVMOptions' in the future.
14 26.97 Warning: The option '-H:ResourceConfigurationResources=META-INF/native-image/org.apache.tomcat.embed/tomcat-embed-el/tomcat-resource.json' is experimental and must be enabled via '-H:+UnlockExperimentalVMOptions' in the future.
14 26.97 Warning: The option '-H:ResourceConfigurationResources=META-INF/native-image/org.apache.tomcat.embed/tomcat-embed-websocket/tomcat-resource.json' is experimental and must be enabled via '-H:+UnlockExperimentalVMOptions' in the future.
It works only when -H:+UnlockExperimentalVMOptions option is before -cp command.
Please add a possibility to pass arguments before -cp command in native-maven-plugin.
The text was updated successfully, but these errors were encountered:
@maximkovalenko-h thank you for reporting. We will discuss this at our next meeting to find a solution.
In the meanwhile, have you opened a ticket for org.apache.tomcat to fix this in their jars? ResourceConfigurationResources should not even be used already for a long while.
While I agree that in this instance the right solution is to fix the tomcat artifacts to not use deprecated options anymore, the request to allow to control the place where -cp ... gets emitted in the native image command is valid.
I.e. we could also introduce <classpath/> and <modulepath/> to be allowed in our <buildArgs>.
If found, we would expand it and suppress our implicit adding of -cp ... (-p ... respectively).
We're trying to use
-H:+UnlockExperimentalVMOptions
option in native-maven-plugin to get rid form native compilation warnings:It works only when
-H:+UnlockExperimentalVMOptions
option is before-cp
command.Please add a possibility to pass arguments before
-cp
command in native-maven-plugin.The text was updated successfully, but these errors were encountered: