在scala中导入akka zeromq扩展

时间:2013-09-04 13:54:29

标签: macos scala akka akka-zeromq

我正在尝试在scala中使用zeromq扩展,但编译失败了sbt。

import akka.zeromq._

这是我得到的错误;

object zeromq is not a member of package akka

build.sbt文件看起来像;

name := "Akka Test"

version := "1.0"

scalaVersion := "2.10.2"

resolvers += "Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/"

resolvers += "Sonatype (releases)" at "https://oss.sonatype.org/content/repositories/releases/"

libraryDependencies += "com.typesafe.akka" %% "akka-actor" % "2.2.0"

libraryDependencies += "org.zeromq" %% "zeromq-scala-binding" % "0.0.6"

我尝试从zeromq官方页面遵循osx的安装说明。 http://zeromq.org/bindings:scala-binding

zeromq version = 2.1.11

scala version = 2.10.2

os = osx

1 个答案:

答案 0 :(得分:3)

Akka ZeroMQ扩展程序似乎在自己的包中。将其添加到库依赖项:

libraryDependencies += "com.typesafe.akka" %% "akka-zeromq" % "2.2.0"