我開始一個Scala項目,我使用SBT和Intellij 13作爲我的IDE。Intellij中的SBT和外部庫
我有以下build.sbt文件,但我似乎無法得到SBT「libraryDependencies」部分中的依賴關係,以在運行「sbt update」之後顯示在「外部庫」中。
以下是我的build.sbt:
name := "myapp-scala"
version := "1.0"
scalaVersion := "2.10.3"
resolvers += "spray repo" at "http://repo.spray.io"
resolvers += "spray nightlies" at "http://nightlies.spray.io"
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-actor" % "2.2.0",
"com.typesafe.akka" %% "akka-slf4j" % "2.2.0",
"ch.qos.logback" % "logback-classic" % "1.0.13",
"io.spray" % "spray-can" % "1.2-20130712",
"io.spray" % "spray-routing" % "1.2-20130712",
"io.spray" %% "spray-json" % "1.2.3",
"org.specs2" %% "specs2" % "1.14" % "test",
"io.spray" % "spray-testkit" % "1.2-20130712" % "test",
"com.typesafe.akka" %% "akka-testkit" % "2.2.0" % "test",
"com.novocode" % "junit-interface" % "0.7" % "test->default",
"org.scalautils" % "scalautils_2.10" % "2.0",
"org.scalatest" % "scalatest_2.10" % "2.0" % "test"
)
scalacOptions ++= Seq(
"-unchecked",
"-deprecation",
"-Xlint",
"-Ywarn-dead-code",
"-language:_",
"-target:jvm-1.7",
"-encoding", "UTF-8"
)
任何人都可以點我在正確的方向?
你有什麼版本的scala插件和IDEA(13..what?)? –
Scala插件版本0.26.361 InteilliJ版本13.0.1 – binarygiant
我剛剛與IDEA 13.1.1有相同的問題,並且刷新SBT項目爲我做了(查看 - >工具窗口 - > SBT - >刷新所有SBT項目) – LMeyer