gpt4 book ai didi

sbt - 为什么 sbt updateClassifier 无法下载 org.scala-sbt#precompiled?

转载 作者:行者123 更新时间:2023-12-04 16:08:43 32 4
gpt4 key购买 nike

在 unix shell 中试试这个:

git clone git@github.com:jsuereth/sbt-in-action-examples.git
cd sbt-in-action-examples/chapter11/scalastyle-plugin/
sbt updateClassifiers

使用 sbt 0.13.7,我得到了这个:
[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

这些警告正常吗?

我注意到 SBT 试图寻找这些工件的 URL 与发布的工件的 URL 不匹配。

也就是说,sbt 正在寻找这些工件:

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_2/0.13.7/jars/precompiled-2_9_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/precompiled-2_8_2/0.13.7/jars/compiler-interface-bin.jar
https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/precompiled-2_9_2/0.13.7/jars/compiler-interface-bin.jar
https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/precompiled-2_9_3/0.13.7/jars/compiler-interface-bin.jar

似乎上面的“compiler-interface-bin.jar”工件对应于此处的“源”工件:

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_2/0.13.7/srcs/precompiled-2_9_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
  • 尼古拉斯。
  • 最佳答案

    我猜测这些是由 https://repo.typesafe.com/ 的不稳定性引起的。 (重定向代理)或 Bintray。我不认为他们是正常的。

    对于它的值(value),我能够运行 updateClassifiers美好的。

    关于sbt - 为什么 sbt updateClassifier 无法下载 org.scala-sbt#precompiled?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29611268/

    32 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com