Skip to content
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

Maven Native Image plugin should fail if it cannot download reachability metadata #333

Open
odrotbohm opened this issue Oct 13, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@odrotbohm
Copy link

odrotbohm commented Oct 13, 2022

If, for whatever reason, the reachability metadata cannot be downloaded, the console output looks as follows:

[INFO] --- native-maven-plugin:0.9.14:compile-no-fork (native-compile) @ restbucks ---
[ERROR] Failed to download from https://github.com/oracle/graalvm-reachability-metadata/releases/download/0.2.2/graalvm-reachability-metadata-0.2.2.zip: github.com
[WARNING] GraalVM reachability metadata repository is enabled, but no repository has been configured
…

still, the build still continues and, if it succeeds, is likely to produce an invalid binary. Does it make sense to abort the build if it is configured to use the metadata repository, but cannot download it? Additionally, does it make sense to cache the information downloaded so that it doesn't have to be redownloaded on every build (and by that make native builds implicitly require internet access?)

@odrotbohm odrotbohm added the enhancement New feature or request label Oct 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants