sbt.ResolveException:未解析的依赖项:com.typesafe.akka #akka-sbt-plugin; 2.0:未找到

时间:2016-01-26 18:42:59

标签: scala sbt akka typesafe

我遇到了sbt compile ..

的问题
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::          UNRESOLVED DEPENDENCIES         ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: com.typesafe.akka#akka-sbt-plugin;2.0: not found
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn] 
[warn]  Note: Some unresolved dependencies have extra attri

[error] (*:update) sbt.ResolveException: unresolved dependency: com.typesafe.akka#akka-sbt-plugin;2.0: not found

我正在使用sbt版本0.13.8和Scala 2.11.4。

这是build.sbt文件

name := "test"

version := "1.0"

scalaVersion := "2.11.7"

libraryDependencies ++= {
  val akkaV = "2.3.14"
  val sprayV = "1.3.1"
  Seq (
"joda-time" % "joda-time" % "2.9.1",
"com.typesafe.akka" %% "akka-actor"   % akkaV,
"com.typesafe.akka" %% "akka-slf4j"   % akkaV,
"com.typesafe.akka" %% "akka-remote"  % akkaV,
"com.typesafe.akka" %% "akka-agent"   % akkaV,
"com.typesafe.akka" %% "akka-sbt-plugn" % akkaV,
"com.typesafe.akka" %% "akka-testkit" % akkaV % "test"
  )
}

resolvers ++= Seq(
  "Spray repository" at "http://repo.spray.io",
  "Typesafe repository" at "http://repo.akka.io/releases/",
  "Akka Snapshot Repository" at "http://repo.akka.io/snapshots/",
  "Typesafe repository" at "https://repo.typesafe.com/typesafe/releases/",
  "Scala-Tools Maven2 Snapshots Repository" at "http://scala-tools.org/repo-snapshots"
)

Revolver.settings: Seq[sbt.Setting[_]]

这就是plugins.sbt

logLevel := Level.Warn

addSbtPlugin("io.spray" % "sbt-revolver" % "0.8.0")

addSbtPlugin("com.typesafe.akka" % "akka-sbt-plugin" % "2.0")

我目前正在使用intellij。 喷涂和joda-time工作得很好,但是当添加akka时开始出现问题。

1 个答案:

答案 0 :(得分:0)

根据Migration guide from 2.2 to 2.3

中的说明删除了akka-sbt-plugin

它已被sbt-native-packager取代,因此您应该考虑使用它。

相关问题