davsclaus commented on issue #21: URL: https://github.com/apache/camel-kamelets-examples/issues/21#issuecomment-1563019810
You can run this example locally with jbang today, and download a patch JAR with the fix. Then it works with the released Camel 3.20.4 1) Download patched JAR https://repository.apache.org/content/groups/snapshots/org/apache/camel/camel-kafka/3.20.5-SNAPSHOT/ Make sure to take the newest date; I am using [camel-kafka-3.20.5-20230525.085449-18.jar] Download this JAR to the folder where you can your Camel yaml route and rename it camel-kafka-3.20.6-fix.jar 2) Have folder with the source. Here is what I have -rw-r--r-- 1 davsclaus staff 722 May 25 10:24 MyCredential.java -rw-r--r-- 1 davsclaus staff 743 May 25 16:29 azure.yaml -rw-r--r--@ 1 davsclaus staff 251101 May 25 16:27 camel-kafka-3.20.6-fix.jar This source is in a gist at: https://gist.github.com/davsclaus/acce5925c4abce08aff5d41d7747ae44 3) You can now run camel with the patched JAR camel run azure.yaml MyCredential.java camel-kafka-3.20.6-fix.jar If you dont have other files you should not include, you can also run with `camel run *` 4) When Camel startup it logs that it has added that patched JAR ``` 2023-05-25 16:34:05.944 INFO 32691 --- [ main] org.apache.camel.main.MainSupport : Apache Camel (JBang) 3.20.4 is starting 2023-05-25 16:34:05.967 INFO 32691 --- [ main] org.apache.camel.main.MainSupport : Additional jars added to classpath: camel-kafka-3.20.6-fix.jar ``` -- 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]
