From 3f68cc983e3862a234e2cb71ac4f8799f40ab668 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Wed, 8 Apr 2026 21:14:08 +0000 Subject: [PATCH] fix: include AOT native-image configs on classpath for GraalVM build Spring Boot packages AOT-generated native-image configuration files (resource-config.json, reflect-config.json, etc.) at the JAR root under META-INF/native-image/, but the native-image command only includes BOOT-INF/classes on the classpath. This means the resource hint for csv/* is never seen by native-image, so location_list.csv is excluded from the native binary. Copy META-INF/native-image into BOOT-INF/classes/META-INF/native-image after extracting the JAR so that all AOT configs are discoverable. Co-Authored-By: Georgii Glinskiy --- Dockerfile-GraalVM | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile-GraalVM b/Dockerfile-GraalVM index dda2ff1..b30f174 100644 --- a/Dockerfile-GraalVM +++ b/Dockerfile-GraalVM @@ -24,6 +24,7 @@ COPY --from=build /target/geo.jar ${artifact_dir} WORKDIR ${artifact_dir}geo RUN unzip ../geo.jar +RUN cp -r META-INF/native-image BOOT-INF/classes/META-INF/native-image RUN ${graalvm_dir}/bin/native-image -H:-AddAllFileSystemProviders -cp BOOT-INF/classes:`find BOOT-INF/lib | tr '\n' ':'` --gc=G1 -o app FROM ubuntu:24.10