在build.sbt。SBT ScalaTest依賴關係解析
resolvers += "Repo1" at "http://oss.sonatype.org/content/repositories/releases"
resolvers += "Repo2" at "http://repo1.maven.org/maven2"
libraryDependencies ++= Seq(
"org.specs2" %% "specs2" % "2.3.11" % "test",
"org.scalatest" %% "scalatest_2.11" % "2.1.5" % "test"
)
scalacOptions in Test ++= Seq("-Yrangepos")
// Read here for optional dependencies:
// http://etorreborre.github.io/specs2/guide/org.specs2.guide.Runners.html#Dependencies
resolvers ++= Seq("snapshots", "releases").map(Resolver.sonatypeRepo)
症狀:
Specs2
被解析,scalatest不
org.scalatest#scalatest_2.11_2.10; 2.1.5:找不到
- 使用
Maven
,使用相同的存儲庫 - 一切正常。
問:
- 有什麼不好
sbt
,它爲什麼抱怨所有的時間?