Getting this error message when I run the 'compile' command:
[error] (*:update) sbt.ResolveException: unresolved dependency:
org.apache.kafka#kafka_2.9.2;0.8.0-beta1: null name not allowed
Added the following to my build.sbt
name := "OptionsWatcher"
version := "1.0-SNAPSHOT"
libraryDependencies ++= Seq(
jdbc,
anorm,
cache,
"joda-time" % "joda-time" % "2.2",
"org.joda" % "joda-convert" % "1.3.1",
"ch.qos.logback" % "logback-classic" % "1.0.13",
"org.mashupbots.socko" % "socko-webserver_2.9.2" % "0.2.2",
"nl.grons" % "metrics-scala_2.9.2" % "3.0.0",
"com.codahale.metrics" % "metrics-core" % "3.0.0",
"io.backchat.jerkson" % "jerkson_2.9.2" % "0.7.0",
"com.amazonaws" % "aws-java-sdk" % "1.3.8",
"net.databinder.dispatch" %% "dispatch-core" % "0.9.5",
"org.apache.kafka" % "kafka_2.9.2" % "0.8.0-beta1" excludeAll (
ExclusionRule(organization = "com.sun.jdmk"),
ExclusionRule(organization = "com.sun.jmx"),
ExclusionRule(organization = "javax.jms"),
ExclusionRule(organization = "org.slf4j")
)
)
play.Project.playScalaSettings
On Mon, Nov 25, 2013 at 5:27 AM, chetan conikee <[email protected]> wrote:
> Add the following to a Play Project with Scala 2.9.2
>
> scalaVersion := "2.9.2"
>
> libraryDependencies ++= Seq(
> "joda-time" % "joda-time" % "2.2",
> "org.joda" % "joda-convert" % "1.3.1",
> "ch.qos.logback" % "logback-classic" % "1.0.13",
> "org.mashupbots.socko" % "socko-webserver_2.9.2" % "0.2.2",
> "nl.grons" % "metrics-scala_2.9.2" % "3.0.0",
> "com.codahale.metrics" % "metrics-core" % "3.0.0",
> "io.backchat.jerkson" % "jerkson_2.9.2" % "0.7.0",
> "com.amazonaws" % "aws-java-sdk" % "1.3.8",
> "net.databinder.dispatch" %% "dispatch-core" % "0.9.5",
> "org.apache.kafka" % "kafka_2.9.2" % "0.8.0-beta1" excludeAll (
> ExclusionRule(organization = "com.sun.jdmk"),
> ExclusionRule(organization = "com.sun.jmx"),
> ExclusionRule(organization = "javax.jms"),
> ExclusionRule(organization = "org.slf4j"))
> )
>
>
> On Sun, Nov 24, 2013 at 11:41 PM, Something Something <
> [email protected]> wrote:
>
> > Let me start off by saying I am a newbie to Kafka, Play as well as Scala.
> >
> > Trying to write an application under Play Framework in which an 'Actor'
> > will write a message to Kafka queue.
> >
> > There's sample code available
> > under ./core/src/main/scala/kafka/producer/ConsoleProducer.scala for me
> to
> > copy, so that's not the issue.
> >
> > I am struggling to add the Kafka jar to my project in Play.
> >
> > I tried to put the following under ./projects/plugins.sbt
> >
> > addSbtPlugin("org.apache" % "kafka" % "0.7.2-incubating")
> >
> > (and several combinations of this) but nothing is working. Please help.
> >
> > Thanks.
> >
>