sbt无法解析Typesafe存储库

时间:2013-12-10 14:37:23

标签: scala sbt ivy typesafe

我对sbt和Typesafe存储库有一个奇怪的问题:

[info] Resolving com.typesafe.play#play-json_2.10;2.2.0 ...
[warn]  module not found: com.typesafe.play#play-json_2.10;2.2.0
[warn] ==== local: tried
[warn]   /Users/hhrutz/.ivy2/local/com.typesafe.play/play-json_2.10/2.2.0/ivys/ivy.xml
[warn] ==== public: tried
[warn]   http://repo1.maven.org/maven2/com/typesafe/play/play-json_2.10/2.2.0/play-json_2.10-2.2.0.pom
[warn] ==== Typesafe Releases: tried
[warn]   https://repo.typesafe.com/typesafe/releases/com/typesafe/play/play-json_2.10/2.2.0/play-json_2.10-2.2.0.pom
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::          UNRESOLVED DEPENDENCIES         ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: com.typesafe.play#play-json_2.10;2.2.0: not found
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
sbt.ResolveException: unresolved dependency: com.typesafe.play#play-json_2.10;2.2.0: not found

我可以从http://repo.typesafe.com/typesafe/releases/com/typesafe/play/play-json_2.10/2.2.0/手动下载.pom和.jar,这样服务器肯定就在那里。

这可能是个问题吗?任何线索,如果它肯定有正确的URL会失败?

2 个答案:

答案 0 :(得分:3)

旋转变压器似乎存在一个未知问题

resolvers += "Typesafe Releases" at "https://repo.typesafe.com/typesafe/releases/"

查找this question,可以通过添加另一个解析器来解决问题:

resolvers += "Typesafe Simple Repository" at
  "http://repo.typesafe.com/typesafe/simple/maven-releases/"

答案 1 :(得分:1)

对于 2020 年以后遇到此问题的人,请将解析器 url 中的 http 部分替换为 https。

参考:https://www.lightbend.com/blog/lightbend-to-require-https-on-repos-starting-august-5-2020