当前位置: 首页 > 知识库问答 >
问题:

为什么sbt updateClassifier无法下载org.scala-sbt#预编译?

龚安民
2023-03-14

在unix shell中尝试以下操作:

git clone git@github.com:jsuereth/sbt-in-action-examples.git
cd sbt-in-action-examples/chapter11/scalastyle-plugin/
sbt updateClassifiers
[warn]  [FAILED     ] org.scala-sbt#precompiled-2_8_2;0.13.7!precompiled-2_8_2.jar:  (0ms)
[warn] ==== typesafe-ivy-releases: tried
[warn]   https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/precompiled-2_8_2/0.13.7/jars/precompiled-2_8_2.jar
…
[warn]  [FAILED     ] org.scala-sbt#precompiled-2_9_2;0.13.7!precompiled-2_9_2.jar:  (0ms)
[warn] ==== typesafe-ivy-releases: tried
[warn]   https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/precompiled-2_9_2/0.13.7/jars/precompiled-2_9_2.jar
…
[warn]  [FAILED     ] org.scala-sbt#precompiled-2_9_3;0.13.7!precompiled-2_9_3.jar:  (0ms)
[warn] ==== typesafe-ivy-releases: tried
[warn]   https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/precompiled-2_9_3/0.13.7/jars/precompiled-2_9_3.jar
… 
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::              FAILED DOWNLOADS            ::
[warn]  :: ^ see resolution messages for details  ^ ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: org.scala-sbt#precompiled-2_8_2;0.13.7!precompiled-2_8_2.jar
[warn]  :: org.scala-sbt#precompiled-2_9_2;0.13.7!precompiled-2_9_2.jar
[warn]  :: org.scala-sbt#precompiled-2_9_3;0.13.7!precompiled-2_9_3.jar
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[success] Total time: 4 s, completed Apr 13, 2015 9:51:15 AM

https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/precompiled-2_8_2/0.13.7/jars/precompiled-2_8_2.jar https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/precompiled-2_9_3/0.13.7/jars/precompiled-2_9_3.jar

但实际上,可用的工件是这些:

https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/precompiler-interface-bin.jar https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/precompiler-interface-bin.jar https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/precompiler-interface-bin.jar

看起来上面的“compiler-interface-bin.jar”工件对应于这里的“sources”工件:

https://repo.typesafe.com/typesafe/ivy-releases/org.scala-Sbt/precompiled-2_8_2/0.13.7/srcs/precompiled-2_8_2-sources.jar https://repo.typesafe.com/typesafe/ivy-releases/org.scala-Sbt/precompiled-2_9_3/0.13.7/srcs/precompiled-2_9_3-sources.jar

  • 尼古拉斯。

共有1个答案

任宾鸿
2023-03-14

我猜测这是由于https://repo.typesafe.com/(重定向代理)或bintray不稳定造成的。我不认为他们是正常的。

值得的是,我能够很好地运行updateclassifiers

 类似资料:
  • 我已经和它斗争了好几天了,但还是没有运气:(尝试添加一些“解析器”等,但我没有任何正确的前进方向。看起来没有org.scala-sbt#sbt;0.12.3,但我可以使用我的浏览器访问http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt/0.12.3/ivys/ivys/ivy.xml(所以工件是可用的)。 我是在代理服务

  • 因此,我使用.的说明在Ubuntu上安装了sbt,但当我在终端执行时,我会出现错误,下载失败,因为“找不到可信的证书”。我做的不多,所以我不确定我做错了什么。 完整输出如下:

  • 由于某种原因,jar在TypeSafe的bintray中不再可用。最大的版本是0.13.9。 我知道获取它的地方是https://repo.typesafe.com/typesafe/ivy-release/,但是我如何告诉sbt使用这个回购呢? 我已经试过: null 如何告诉sbt在哪里获取二进制文件?

  • 我正在从事一个Scala项目,该项目已经存在了几年,但对我来说是新的。我的任务是从Scala 2.9升级它。3至2.11。7及其依赖项。我已经克服了错误和警告,但我无法在SBT中成功编译项目。我总是在几乎相同的地方收到StackOverflower错误。stacktrace看起来像这样,但细节随Xss设置而变化(目前为4M,但已尝试高达24M): SBT_OPTS看起来像这样: 我可以在Intel

  • 我试图为现有的Scala项目调整sbt build,但没有成功,这个项目以前工作得很好,但留下了任何文档。似乎替换了不正确的URL来解析“sbt.jar”的依赖关系... 在my_project目录内: C:\users\svc\.sbt\0.13.5\plugins\plugins.sbt: C:\程序文件(x86)\sbt\conf\sbtconfig.txt(在本地PC上安装sbt后未更改)

  • 我已经下载了SBT 0.3.15,我正在尝试运行它:现在,我只想运行SBT并获得提示;我还没有处于我想构建项目的阶段(尽管我希望能够很快完成)。 然而,我面临着SBT试图下载的奇怪依赖项的问题。我最初面临代理的问题,但现在好多了。SBT尝试下载的第一件事是pom。jansi项目1.11的xml及其工作原理: 它尝试下载的下一个文件是fusesource-pom-1.8。Maven central