-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--exclude-config native-image flag not working with the native-image Maven plugin #185
Comments
To reproduce with Spring Native sample, for example
I am wondering if this is a NBT bug or a |
See oracle/graal#3749 (comment) related comment where I ask a fix on GraalVM side since the issue is not limited to NBT. |
@gradinac this should be fixed now with oracle/graal@006c61d |
Thank you very much for looking into this! :) |
When creating the argument line for the native-image command, the classpath option (
--cp <classpath>
) is always put first. Native-image will process arguments in the order they appear on the command line (https://github.com/oracle/graal/blob/6e14dfe1d0d6c767eafaebe63b14192e36414a32/substratevm/src/com.oracle.svm.driver/src/com/oracle/svm/driver/NativeImage.java#L1555)This means that the
--cp
option and allMETA-INF/native-image
files on the classpath get processed before native-image sees the--exclude-config
option and ignores them, effectively making the option a no-opThe text was updated successfully, but these errors were encountered: