找不到模块:io.spray #sbt-revolver; 0.7.2使用intellij 14.1.4和sbt 0.13.5

时间:2015-07-07 01:41:39

标签: scala sbt intellij-14

我尝试了很多东西,但似乎无法让它发挥作用。 我的build.sbt

中有以下内容
name := "MyTestApp"

version := "0.1-SNAPSHOT"

scalaVersion := "2.10.3"

resolvers ++= Seq("spray repo" at "http://repo.spray.io",
"Typesafe Releases" at "http://repo.typesafe.com/typesafe/releases/",
"Scalaz Bintray Repo" at "http://dl.bintray.com/scalaz/releases",
"Plugin Releases" at 
"http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases")

libraryDependencies ++= Seq(
"Io.spray" %% "spray-routing" % "1.3.2",
"io.spray" %% "spray-can" % "1.3.2",
"com.typesafe.akka" %% "akka-actor" % "2.2.3",
"com.typesafe.akka" %% "akka-slf4j" % "2.2.3",
"org.slf4j" % "slf4j-simple" % "1.6.4",
"io.spray" % "sbt-revolver" % "0.7.2"
)

我还在plugins.sbt文件中添加了以下内容

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

我使用scala 2.10和sbt版本0.13.5 我的构建日志似乎表明它正在尝试在以下位置解析 ====插件发布:尝试过 [警告] http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/io/spray/sbt-revolver/0.7.2/sbt-revolver-0.7.2.pom

浏览以下内容可能会解决,如果它正在查找 http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/io.spray/sbt-revolver/scala_2.10/sbt_0.13/0.7.2/

关于为什么io.spray在网址中变成io / spray的任何想法

任何帮助深表赞赏

1 个答案:

答案 0 :(得分:1)

使用此:

Resolver.url("Plugin Releases", url("http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/"))(Resolver.ivyStylePatterns)

而不是:

"Plugin Releases" at "http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases"

这为此存储库设置了正确的URL模式。