2013-12-10 51 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/"