2013-12-10 20 views
3

我有一个奇怪的问题,SBT和类型安全库:SBT不能解决类型安全的仓库

[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

似乎有根据旋

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/"