-
Notifications
You must be signed in to change notification settings - Fork 95
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
Remove --allow-incomplete-classpath from native-image.properties #397
Comments
This parameter has been added to avoid compilation failure when optional maven dependencies ( @ppalaga how would you suggest to fix it for the moment? I would like to avoid including all the optional dependencies... |
I do not know all the necessary details about arangodb-java-driver, but from what you say it sounds like moving the code requiring those deps to new artifacts (maven modules) could be a solution? In the core Depending on how much your API is soaked by httpclient and jackson-dataformat-velocypack, this might or might not be a backwards compatible change. Does this proposal make any sense? |
I agree, thanks for sharing @ppalaga . |
Thanks a lot, that sounds like a good plan to me! |
Since version 7.0.0 the driver can compile to native image with https://github.com/arangodb/arangodb-java-driver/releases/tag/v7.0.0-RC.4 |
Closing as fixed in version 7.0.0. Please reopen in case of further problems or questions. |
--allow-incomplete-classpath
is suitable for debugging but nor for running production code. Its presence in arangodb-java-driver enables it for all projects depending on it. The maintainers of those projects thus may get mislead into believing that their code is correct (because otherwise the native compilation would have failed) but in reality the code is broken and may fail in production.The text was updated successfully, but these errors were encountered: