diff --git a/extensions/fhir/deployment/src/main/java/org/apache/camel/quarkus/component/fhir/deployment/FhirProcessor.java b/extensions/fhir/deployment/src/main/java/org/apache/camel/quarkus/component/fhir/deployment/FhirProcessor.java index 64568e8fa763..aefccbbab7bd 100644 --- a/extensions/fhir/deployment/src/main/java/org/apache/camel/quarkus/component/fhir/deployment/FhirProcessor.java +++ b/extensions/fhir/deployment/src/main/java/org/apache/camel/quarkus/component/fhir/deployment/FhirProcessor.java @@ -26,15 +26,27 @@ import io.quarkus.deployment.builditem.FeatureBuildItem; import io.quarkus.deployment.builditem.nativeimage.NativeImageResourceBundleBuildItem; import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem; +import io.quarkus.deployment.builditem.nativeimage.RuntimeInitializedClassBuildItem; final class FhirProcessor { private static final String FEATURE = "camel-fhir"; + private static final String[] RUNTIME_INITIALIZED_CLASSES = new String[] { + "org.apache.http.impl.auth.NTLMEngineImpl" + }; + @BuildStep FeatureBuildItem feature() { return new FeatureBuildItem(FEATURE); } + @BuildStep + void configureRuntimeInitializedClasses(BuildProducer runtimeInitializedClass) { + for (String className : RUNTIME_INITIALIZED_CLASSES) { + runtimeInitializedClass.produce(new RuntimeInitializedClassBuildItem(className)); + } + } + @BuildStep ExtensionSslNativeSupportBuildItem activateSslNativeSupport() { return new ExtensionSslNativeSupportBuildItem(FEATURE);