Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Kafka >> mail # user >> use kafka as dependency in sbt from central maven repository


Copy link to this message
-
Re: use kafka as dependency in sbt from central maven repository
you need to put intransitive() at the end so it ignores dependencies that
are defined to be ignored in maven

so your line would be

libraryDependencies += "org.apache.kafka" % "kafka_2.9.2" % "0.8.0-beta1"
intransitive()

/*******************************************
 Joe Stein
 Founder, Principal Consultant
 Big Data Open Source Security LLC
 http://www.stealth.ly
 Twitter: @allthingshadoop <http://www.twitter.com/allthingshadoop>
********************************************/
On Tue, Aug 20, 2013 at 2:48 AM, Lorenz Knies <[EMAIL PROTECTED]> wrote:

> Hi,
>
> i am having problems using kafka as a dependency in sbt.
>
> with this simple build.sbt:
>
>  name := "kafka-dependency-test"
>
>  scalaVersion := "2.9.2"
>
>  libraryDependencies += "org.apache.kafka" % "kafka_2.9.2" % "0.8.0-beta1"
>
>
> when i do
>
>  sbt update
>
> i get the following error:
>
>  sbt.ResolveException: unresolved dependency:
> org.apache.kafka#kafka_2.9.2;0.8.0-beta1: null name not allowed
>
> i am using sbt 0.12.4 but also tried other versions with no luck
>
> looks like the ivy implementation ignores the org and name attributes for
> the zookeeper dependency in the custom inline xml included in kafkas
> Build.scala
>
> anybody else having these problems and maybe some advice for a
> solution/workaround?
>
>
> regards
>
> lorenz
>
>