添加什么正确的解析器以下拉akka流和akka-http流?
我添加了
resolvers += "Akka Snapshot Repository" at "http://repo.akka.io/snapshots/"
但是Intellij仍然无法删除工件。
resolvers += "Akka Snapshot Repository" at "http://repo.akka.io/snapshots/"
lazy val root = (project in file(".")).
settings(
inThisBuild(List(
organization := "com.example",
scalaVersion := "2.12.6",
version := "0.1.0-SNAPSHOT"
)),
name := "akka-http-test",
libraryDependencies += {
"com.typesafe.akka" %% "akka-http" % "10.1.5"
"com.typesafe.akka" %% "akka-stream" % "2.5.16"
}
)
答案 0 :(得分:1)
Akka项目已发布到Maven Central Repository,其中SBT包括by default,因此无需添加任何特殊的解析程序。我相信问题是build.sbt
中的错误:
尝试定义
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-http" % "10.1.5",
"com.typesafe.akka" %% "akka-stream" % "2.5.16"
)
代替
libraryDependencies += {
"com.typesafe.akka" %% "akka-http" % "10.1.5"
"com.typesafe.akka" %% "akka-stream" % "2.5.16"
}