This is an automated email from the ASF dual-hosted git repository.

jamesnetherton pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git


The following commit(s) were added to refs/heads/main by this push:
     new e91029894e2 Remove redundant build time code from hazelcast extension
e91029894e2 is described below

commit e91029894e28ec14c8664d8d0ec9de60e96df79c
Author: James Netherton <[email protected]>
AuthorDate: Fri Nov 20 16:05:12 2026 +0000

    Remove redundant build time code from hazelcast extension
---
 .../ROOT/pages/reference/extensions/hazelcast.adoc |  7 --
 .../hazelcast/deployment/HazelcastProcessor.java   | 95 ----------------------
 extensions/hazelcast/runtime/pom.xml               |  4 -
 integration-tests/hazelcast/pom.xml                |  2 -
 4 files changed, 108 deletions(-)

diff --git a/docs/modules/ROOT/pages/reference/extensions/hazelcast.adoc 
b/docs/modules/ROOT/pages/reference/extensions/hazelcast.adoc
index 82e6fb0d315..728b733e005 100644
--- a/docs/modules/ROOT/pages/reference/extensions/hazelcast.adoc
+++ b/docs/modules/ROOT/pages/reference/extensions/hazelcast.adoc
@@ -54,13 +54,6 @@ ifeval::[{doc-show-user-guide-link} == true]
 Check the xref:user-guide/index.adoc[User guide] for more information about 
writing Camel Quarkus applications.
 endif::[]
 
-[id="extensions-hazelcast-ssl-in-native-mode"]
-== SSL in native mode
-
-This extension auto-enables SSL support in native mode. Hence you do not need 
to add
-`quarkus.ssl.native=true` to your `application.properties` yourself. See also
-https://quarkus.io/guides/native-and-ssl[Quarkus SSL guide].
-
 [id="extensions-hazelcast-additional-camel-quarkus-configuration"]
 == Additional Camel Quarkus configuration
 
diff --git 
a/extensions/hazelcast/deployment/src/main/java/org/apache/camel/quarkus/component/hazelcast/deployment/HazelcastProcessor.java
 
b/extensions/hazelcast/deployment/src/main/java/org/apache/camel/quarkus/component/hazelcast/deployment/HazelcastProcessor.java
index 0e14c753c65..239ce6ea3a0 100644
--- 
a/extensions/hazelcast/deployment/src/main/java/org/apache/camel/quarkus/component/hazelcast/deployment/HazelcastProcessor.java
+++ 
b/extensions/hazelcast/deployment/src/main/java/org/apache/camel/quarkus/component/hazelcast/deployment/HazelcastProcessor.java
@@ -16,41 +16,8 @@
  */
 package org.apache.camel.quarkus.component.hazelcast.deployment;
 
-import java.util.ArrayList;
-import java.util.List;
-
-import javax.management.MBeanServer;
-import javax.naming.Context;
-import javax.net.ssl.KeyManager;
-import javax.net.ssl.SNIServerName;
-import javax.net.ssl.TrustManager;
-import javax.xml.xpath.XPathFactory;
-
-import com.hazelcast.client.config.ClientConfig;
-import com.hazelcast.collection.IList;
-import com.hazelcast.collection.IQueue;
-import com.hazelcast.collection.ISet;
-import com.hazelcast.config.Config;
-import com.hazelcast.core.HazelcastInstance;
-import com.hazelcast.cp.IAtomicLong;
-import com.hazelcast.internal.util.ICMPHelper;
-import com.hazelcast.map.IMap;
-import com.hazelcast.multimap.MultiMap;
-import com.hazelcast.replicatedmap.ReplicatedMap;
-import com.hazelcast.ringbuffer.Ringbuffer;
-import com.hazelcast.topic.ITopic;
-import io.quarkus.deployment.annotations.BuildProducer;
 import io.quarkus.deployment.annotations.BuildStep;
-import io.quarkus.deployment.builditem.ExtensionSslNativeSupportBuildItem;
 import io.quarkus.deployment.builditem.FeatureBuildItem;
-import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem;
-import 
io.quarkus.deployment.builditem.nativeimage.ReflectiveHierarchyBuildItem;
-import 
io.quarkus.deployment.builditem.nativeimage.ReflectiveHierarchyIgnoreWarningBuildItem;
-import 
io.quarkus.deployment.builditem.nativeimage.RuntimeInitializedClassBuildItem;
-import io.smallrye.common.os.OS;
-import org.apache.camel.tooling.model.MainModel;
-import org.jboss.jandex.DotName;
-import org.jboss.jandex.Type;
 
 class HazelcastProcessor {
 
@@ -60,66 +27,4 @@ class HazelcastProcessor {
     FeatureBuildItem feature() {
         return new FeatureBuildItem(FEATURE);
     }
-
-    @BuildStep
-    ExtensionSslNativeSupportBuildItem activateSslNativeSupport() {
-        return new ExtensionSslNativeSupportBuildItem(FEATURE);
-    }
-
-    @BuildStep
-    List<ReflectiveClassBuildItem> registerReflectiveClasses() {
-        List<ReflectiveClassBuildItem> items = new ArrayList<>();
-        
items.add(ReflectiveClassBuildItem.builder(HazelcastInstance.class.getName()).fields().build());
-        
items.add(ReflectiveClassBuildItem.builder(Config.class.getName()).fields().build());
-        
items.add(ReflectiveClassBuildItem.builder(ClientConfig.class.getName()).fields().build());
-        return items;
-    }
-
-    @BuildStep
-    void 
registerCustomImplementationClasses(BuildProducer<ReflectiveHierarchyBuildItem> 
reflectiveClassHierarchies,
-            BuildProducer<ReflectiveHierarchyIgnoreWarningBuildItem> 
ignoreWarnings) {
-
-        registerTypeHierarchy(reflectiveClassHierarchies, ignoreWarnings,
-                IList.class,
-                IQueue.class,
-                ISet.class,
-                HazelcastInstance.class,
-                IAtomicLong.class,
-                IMap.class,
-                MultiMap.class,
-                ReplicatedMap.class,
-                Ringbuffer.class,
-                ITopic.class,
-                MBeanServer.class,
-                Context.class,
-                KeyManager.class,
-                SNIServerName.class,
-                TrustManager.class,
-                XPathFactory.class,
-                MainModel.class);
-    }
-
-    @BuildStep
-    void registerICMPHelper(BuildProducer<RuntimeInitializedClassBuildItem> 
initializedClasses) {
-        if (OS.current() != OS.LINUX) {
-            initializedClasses.produce(new 
RuntimeInitializedClassBuildItem(ICMPHelper.class.getName()));
-        }
-    }
-
-    private static void registerTypeHierarchy(
-            BuildProducer<ReflectiveHierarchyBuildItem> 
reflectiveHierarchyClass,
-            BuildProducer<ReflectiveHierarchyIgnoreWarningBuildItem> 
ignoreWarnings,
-            Class<?>... classNames) {
-
-        for (Class<?> klass : classNames) {
-            DotName simpleName = DotName.createSimple(klass.getName());
-
-            reflectiveHierarchyClass.produce(
-                    
ReflectiveHierarchyBuildItem.builder(Type.create(simpleName, 
Type.Kind.CLASS)).build());
-
-            ignoreWarnings.produce(
-                    new ReflectiveHierarchyIgnoreWarningBuildItem(simpleName));
-        }
-    }
-
 }
diff --git a/extensions/hazelcast/runtime/pom.xml 
b/extensions/hazelcast/runtime/pom.xml
index 2a25f8efebe..5173c107098 100644
--- a/extensions/hazelcast/runtime/pom.xml
+++ b/extensions/hazelcast/runtime/pom.xml
@@ -49,10 +49,6 @@
             <groupId>com.hazelcast</groupId>
             <artifactId>quarkus-hazelcast-client</artifactId>
         </dependency>
-        <dependency>
-            <groupId>com.hazelcast</groupId>
-            <artifactId>hazelcast</artifactId>
-        </dependency>
         <dependency>
             <groupId>org.graalvm.sdk</groupId>
             <artifactId>nativeimage</artifactId>
diff --git a/integration-tests/hazelcast/pom.xml 
b/integration-tests/hazelcast/pom.xml
index 631a9538502..93df20728f4 100644
--- a/integration-tests/hazelcast/pom.xml
+++ b/integration-tests/hazelcast/pom.xml
@@ -68,7 +68,6 @@
     </dependencies>
 
     <profiles>
-        <!-- https://github.com/apache/camel-quarkus/issues/8005
         <profile>
             <id>native</id>
             <activation>
@@ -96,7 +95,6 @@
                 </plugins>
             </build>
         </profile>
-        -->
         <profile>
             <id>virtualDependencies</id>
             <activation>

Reply via email to