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

Better handling of optional dependencies #2101

Open
gunnarmorling opened this issue Apr 16, 2019 · 2 comments
Open

Better handling of optional dependencies #2101

gunnarmorling opened this issue Apr 16, 2019 · 2 comments

Comments

@gunnarmorling
Copy link
Contributor

When building a native image with code that depends on other classes in optional dependencies, a NoClassDefFoundError is raised. This makes sense but it's hard to fix by the application developer, as they will have to find out which dependency contains the missing class(es) and add them. Some support by Quarkus would be desirable, e.g. it could analyse any optional dependencies of the dependencies used in the native build so it can produce a message such as "class x.y.z couldn't be found but it's located in JAR with GAV abc. Consider to add it as a provided dependency".

@dmlloyd
Copy link
Member

dmlloyd commented Apr 16, 2019

We might consider something like the allow-incomplete-classpath feature of GraalVM but limited in scope to just declared optional dependencies.

@knuspertante
Copy link

I think oracle/graal#4661 could help here as mentioned in #25526.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants