2014-10-06 43 views
3

我只是试图克隆https://github.com/scala-js/scalajs-tutorial,我得到这个:无法解析scalajs-SBT-插件依赖性

[info] Resolving org.scala-lang.modules.scalajs#scalajs-sbt-plugin;0.5.5 ... 
[warn] module not found: org.scala-lang.modules.scalajs#scalajs-sbt-plugin;0.5.5 
[warn] ==== typesafe-ivy-releases: tried 
[warn] http://repo.typesafe.com/typesafe/ivy-releases/org.scala-lang.modules.scalajs/scalajs-sbt-plugin/scala_2.10/sbt_0.13/0.5.5/ivys/ivy.xml 
[warn] ==== sbt-plugin-releases: tried 
[warn] http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.scala-lang.modules.scalajs/scalajs-sbt-plugin/scala_2.10/sbt_0.13/0.5.5/ivys/ivy.xml 
[warn] ==== local: tried 
[warn] C:\Users\Joan\.ivy2\local\org.scala-lang.modules.scalajs\scalajs-sbt-plugin\scala_2.10\sbt_0.13\0.5.5\ivys\ivy.xml 
[warn] ==== public: tried 
[warn] http://repo1.maven.org/maven2/org/scala-lang/modules/scalajs/scalajs-sbt-plugin_2.10_0.13/0.5.5/scalajs-sbt-plugin-0.5.5.pom 

我也开了一个问题here

干杯

回答

2

Qote从https://github.com/scala-js/scalajs-tutorial/issues/3

这个解析器应该默认使用sbt> = 0.13.0。
这一切都工作正常一年。现在突然人们开始有这个问题:-s这没有任何意义。

解决方法:添加明确以下解析器在project/plugins.sbt

resolvers += Resolver.url(
    "bintray-sbt-plugin-releases", 
    url("https://dl.bintray.com/content/sbt/sbt-plugin-releases") 
)(Resolver.ivyStylePatterns)