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

scalatest – 未知工件??sbtplugin使用scala 2.12的超级安全编译

发布时间:2020-12-16 08:45:55 所属栏目:安全 来源:网络整理
导读:在我在 Scala 2.12中的sbt项目中,我正在使用IntelliJ IDEA并想要导入scalatest. 为了安装推荐的SuperSafe Community Edition Scala编译器插件.我按照指令 here. 我的plugin.sbt: addSbtPlugin(“com.artima.supersafe”%“sbtplugin”%“1.1.2”) Intelli
在我在 Scala 2.12中的sbt项目中,我正在使用IntelliJ IDEA并想要导入scalatest.
为了安装推荐的SuperSafe Community Edition Scala编译器插件.我按照指令 here.

我的plugin.sbt:

addSbtPlugin(“com.artima.supersafe”%“sbtplugin”%“1.1.2”)

Intellij导入显示的错误是:

SBT project import
        [warn]  [FAILED     ] com.artima.supersafe#sbtplugin;1.1.2!sbtplugin.jar(src):  (0ms)
        [warn] ==== typesafe-ivy-releases: tried
        [warn]   https://repo.typesafe.com/typesafe/ivy-releases/com.artima.supersafe/sbtplugin/scala_2.10/sbt_0.13/1.1.2/srcs/sbtplugin-sources.jar
        [warn] ==== sbt-plugin-releases: tried
        [warn]   https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.artima.supersafe/sbtplugin/scala_2.10/sbt_0.13/1.1.2/srcs/sbtplugin-sources.jar
        [warn] ==== local: tried
        [warn]   /Users/salvob/.ivy2/local/com.artima.supersafe/sbtplugin/scala_2.10/sbt_0.13/1.1.2/srcs/sbtplugin-sources.jar
        [warn] ==== public: tried
        [warn]   https://repo1.maven.org/maven2/com/artima/supersafe/sbtplugin_2.10_0.13/1.1.2/sbtplugin-1.1.2-sources.jar
        [warn] ==== Artima Maven Repository: tried
        [warn]   http://repo.artima.com/releases/com/artima/supersafe/sbtplugin_2.10_0.13/1.1.2/sbtplugin-1.1.2-sources.jar
        [warn]  ::::::::::::::::::::::::::::::::::::::::::::::
        [warn]  ::              FAILED DOWNLOADS     ...

也许与新的Scala版本不相容?

解决方法

请尝试以下方法:

>当我们在projects / build.sbt中添加插件时:

addSbtPlugin(“com.artima.supersafe”%“sbtplugin”%“1.1.2”)
>我们不能在其他任何地方添加上述插件
>添加到?/ .sbt / 0.13 / global.sbt

解析器=“Artima Maven Repository”在“http://repo.artima.com/releases”
>不要在其他地方添加此解析器
>确保在每个sbt行之前和之后都有一个空行

HTHS

(编辑:李大同)

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

    推荐文章
      热点阅读