Hi Oh it may be that spring boot comes with a set of -starter OOTB and camel prefer to use those. I assume there is a spring-boot-kafka dependency you can add which brings in the supported Kafka version for SB.
On Mon, Sep 23, 2019 at 1:11 PM Erik Boye <[email protected]> wrote: > > Hi, > > I am trying to figure out why camel-kafka-starter is excluding the transitive > dependency to kafka-clients: > https://github.com/apache/camel/blob/99c0a691f35868aa43c9c159e9076de0ea5e0c38/platforms/spring-boot/components-starter/camel-kafka-starter/pom.xml#L47 > The whole idea with Spring Boot Starters is "a one-stop-shop for all the > Spring and related technology that you need without having to hunt through > sample code and copy paste loads of dependency descriptors" (from > https://github.com/spring-projects/spring-boot/tree/master/spring-boot-project/spring-boot-starters). > In order to use camel-kafka, you obviously need a dependency to one or more > Kafka artifacts, and I think those dependencies should be pulled in with > camel-kafka-starter. So why the exclusion? > > This means that a cannot only depend on camel-kafka-starter to "get started", > but I also have to explicitly add the dependency to kafka-clients. And maybe > also kafka_2.11? I don't know, and I think that these exclusions ruin the > starter concept for camel-kafka..... > The versions of Kafka artifacts will be managed by Spring Boot BOM, but some > artifact must declare the dependencies, and I think it should be > camel-kafka-starter in this case. > > Is there any rationale behind that I do not understand? > > Regards, > Erik > > "This email with attachments is solely for the use of the individual or > entity to which it is addressed. It may contain confidential or privileged > information. If you are not the addressee, please notify the sender and > delete this message and all attachments from your files." -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2
