我正在使用java處理akka項目並播放framewrok。添加依賴項以播放scala.build文件時出錯
我想用akka遠程集羣構建集羣系統。
但增加的依賴於build.scala文件
我碰到下面的錯誤後。
[info] Done updating.
[error] java.lang.NoClassDefFoundError: akka/util/FiniteDuration
這是從build.scala文件
object ApplicationBuild extends Build {
val appName = "akka-remote"
val appVersion = "1.0-SNAPSHOT"
val appDependencies = Seq(
"com.typesafe.akka" % "akka-actor" % "2.1-SNAPSHOT" ,
"com.typesafe.akka" % "akka-remote" % "2.1-SNAPSHOT" ,
"com.typesafe.akka" % "akka-kernel" % "2.1-SNAPSHOT"
)
val main = PlayProject(appName, appVersion, appDependencies, mainLang = JAVA).settings(
// Add your own project settings here
resolvers += "Typesafe Releases" at "http://repo.typesafe.com/typesafe/releases"
)
}
誰能幫出這個問題,請代碼。
感謝好友會盡力回覆你 –