From f8ed7a34c254e29250ba8feb8a3e4be43122692e Mon Sep 17 00:00:00 2001 From: Kathiresan Selvaraj <96088452+kathirsvn@users.noreply.github.com> Date: Tue, 31 Oct 2023 08:52:21 -0400 Subject: [PATCH] Fix native image building with datastax driver dependency (#598) --- src/main/resources/application.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml index f54252fa9d..e475da55dd 100644 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application.yaml @@ -106,3 +106,7 @@ quarkus: # adapt path of the open api definitions smallrye-openapi: path: /api/json/openapi + native: + # Adding com.datastax.oss.driver.internal.core.metadata.MetadataManager to the list of classes that are initialized + # at run time while building the native image. This is for the issue https://github.com/stargate/jsonapi/issues/597 + additional-build-args: --initialize-at-run-time=com.datastax.oss.driver.internal.core.metadata.MetadataManager \ No newline at end of file