Scala是2.10.2版,而sbt是0.13.0版

我正在尝试为scala单元测试代码覆盖率设置scct,所以在build.sbt中
我加了

seq(ScctPlugin.instrumentSettings : _*)

并在project/plugins.sbt中添加了
resolvers += Classpaths.typesafeResolver

resolvers += "scct-github-repository" at "http://mtkopone.github.com/scct/maven-repo"

addSbtPlugin("reaktor" %% "sbt-scct" % "0.2-SNAPSHOT")

我收到类似...的错误。
module not found: reaktor#sbt-scct;0.2-SNAPSHOT

最后一条消息是
[warn] ==== scct-github-repository: tried
[warn]   http://mtkopone.github.com/scct/maven-repo/reaktor/sbt-scct_2.10_0.13/0.2-SNAPSHOT/sbt-scct-0.2-SNAPSHOT.pom
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::          UNRESOLVED DEPENDENCIES         ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: reaktor#sbt-scct;0.2-SNAPSHOT: not found
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]
[warn]  Note: Some unresolved dependencies have extra attributes.  Check that these dependencies exist with the requested attributes.
[warn]      reaktor:sbt-scct:0.2-SNAPSHOT (sbtVersion=0.13, scalaVersion=2.10)

我看着http://mtkopone.github.io/scct/maven-repo/reaktor/
我看到我似乎需要的那个缺少了例如我懂了
sbt-scct_2.9.2_0.13/
scct_2.10/
and a bunch of others but no ... sbt-scct_2.10_0.13

你能帮我吗 ? (我是sbt新手)

最佳答案

SCCT有一个新的源代码存储库:https://github.com/SCCT/scct

结果,您可以从plugins.sbt文件中的addSbtPlugin("com.github.scct" %% "sbt-scct" % "0.2")从maven Central获取发行版本。

我要复制的项目在GitHub上。

更新:

该存储库已移至https://github.com/sqality/scct
并且您的plugins.sbt文件中需要addSbtPlugin("com.sqality.scct" % "sbt-scct" % "version")

关于scala - 找不到sbt和scct ....模块: reaktor#sbt-scct;0. 2-SNAPSHOT,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/19400819/

10-10 05:19