加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

scala – sbt和scct …找不到模块:reaktor#sbt-scct; 0.2-SNAPS

发布时间:2020-12-16 18:41:02 所属栏目:安全 来源:网络整理
导读:scala是版本2.10.2,sbt是0.13.0 我正在尝试在build.sbt中为scala单元测试代码覆盖设置scct 我补充道 seq(ScctPlugin.instrumentSettings : _*) 在project / plugins.sbt中我添加了 resolvers += Classpaths.typesafeResolverresolvers += "scct-github-repos
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

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

解决方法

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”).

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读