Java / GraalVM Interview questions
What is the purpose of the reachability metadata repository?
The GraalVM Reachability Metadata Repository is a community-maintained collection of pre-written reflection, resource, JNI, and proxy configuration files for popular third-party libraries.
Instead of every project having to run the tracing agent against dependencies like Jackson, Hibernate, or various logging frameworks to figure out their reflective usage, the build can pull in ready-made metadata for that exact library version automatically.
<plugin> <groupId>org.graalvm.buildtools</groupId> <artifactId>native-maven-plugin</artifactId> <configuration> <metadataRepository> <enabled>true</enabled> </metadataRepository> </configuration> </plugin>
This drastically cuts down the manual configuration burden for native-image builds of typical enterprise Java applications that pull in dozens of dependencies.
More Related questions...