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

scala – 公共SBT插件回购似乎被破坏了

发布时间:2020-12-16 08:51:32 所属栏目:安全 来源:网络整理
导读:目前我们所有的构建都失败了,因为它无法从公共SBT插件回购中解析插件.我们收到以下错误: [warn] Note: Some unresolved dependencies have extra attributes. Check that these dependencies exist with the requested attributes. [warn] com.typesafe.pla
目前我们所有的构建都失败了,因为它无法从公共SBT插件回购中解析插件.我们收到以下错误:

[warn] Note: Some unresolved dependencies have extra attributes. Check that these dependencies exist with the requested attributes.
[warn] com.typesafe.play:sbt-plugin:2.4.0 (scalaVersion=2.10,sbtVersion=0.13)
[warn] com.github.gseitz:sbt-release:1.0.0 (scalaVersion=2.10,sbtVersion=0.13)

SBT docs列出了预定义的回购. sbt插件的链接导致404.我认为某种重定向机制被破坏了.

我知道实际的工件是在bintray上托管的.因此,我试图将我的构建直接指向此回购,但这似乎有所帮助.我在项目/ plugins.sbt中添加了以下内容:

resolvers += Resolver.url(
  "fix-sbt-plugin-releases",url("http://dl.bintray.com/sbt/sbt-plugin-releases"))(
   Resolver.ivyStylePatterns)

有谁知道修复如何绕过这个?

解决方法

现在不会帮助你,但你可能想要考虑它的未来:

您可以使用Artifactory之类的东西来镜像本地网络中的所有依赖项.

您可以将Artifactory配置为代理,并且只有在您尝试在停机期间下载新的依赖项时才会失望(这应该是非常不可能的).

使依赖性解决更快.

(编辑:李大同)

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

    推荐文章
      热点阅读