找不到sbt和scct ....模块:reaktor#sbt-scct; 0.2-SNAPSHOT

时间:2013-10-16 10:18:19

标签: scala sbt code-coverage scct

scala是版本2.10.2,sbt是0.13.0

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

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
你能帮忙吗? (我是新手)

2 个答案:

答案 0 :(得分:9)

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")

答案 1 :(得分:1)

原始SCCT现在处于非活动状态。

以下是两个最活跃的分叉。