raphael5178 commented on issue #1612:
URL: https://github.com/apache/camel-quarkus/issues/1612#issuecomment-4744688715

   Hello. I successfully built the Camel Zookeeper Master using this build step 
for my use case.
   
   `class ZookeeperMasterNativeBuildStep {
   
       private static final String FEATURE = "camel-zookeeper-master-native";
   
       @BuildStep(onlyIf = { NativeBuild.class })
       FeatureBuildItem feature() {
           return new FeatureBuildItem(FEATURE);
       }
   
       @BuildStep(onlyIf = { NativeBuild.class })
       ReflectiveClassBuildItem registerForReflection() {
           return ReflectiveClassBuildItem.builder(
                           "org.apache.zookeeper.ClientCnxnSocketNIO",
                           "org.apache.zookeeper.ClientCnxnSocketNetty",
                           "org.apache.zookeeper.client.ZKClientConfig",
                           
"org.apache.camel.component.zookeepermaster.CamelNodeState",
                           
"org.apache.camel.component.zookeepermaster.group.NodeState",
                           "sun.security.provider.ConfigFile")
                   .methods()
                   .classes()
                   .fields()
                   .constructors()
                   .unsafeAllocated()
                   .serialization()
                   .build();
       }
   
       @BuildStep(onlyIf = { NativeBuild.class })
       IndexDependencyBuildItem registerDependencyForIndex() {
           return new IndexDependencyBuildItem("org.apache.zookeeper", 
"zookeeper");
       }
   
   }`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to