我使用Typesafe Activator 1.2.2创建了一个项目,但我的计算机无法解析依赖项。我使用Scala。我有一个Mac小牛队(我和Snow Leopard有同样的问题)。
奇怪的是我的项目在我的Linux家用电脑上运行得很好,所以我不明白为什么我的mac上有问题。这是日志:
[info] Resolving com.typesafe.sbt#sbt-jshint;1.0.0 ...
[error] Server access Error: Operation timed out url=http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.typesafe.sbt/sbt-jshint/scala_2.10/sbt_0.13/1.0.0/ivys/ivy.xml
[warn] module not found: com.typesafe.sbt#sbt-jshint;1.0.0
[warn] ==== typesafe-ivy-releases: tried
[warn] http://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.sbt/sbt-jshint/scala_2.10/sbt_0.13/1.0.0/ivys/ivy.xml
[warn] ==== sbt-plugin-releases: tried
[warn] http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.typesafe.sbt/sbt-jshint/scala_2.10/sbt_0.13/1.0.0/ivys/ivy.xml
[warn] ==== local: tried
[warn] /Users/jjuulliieenn/.ivy2/local/com.typesafe.sbt/sbt-jshint/scala_2.10/sbt_0.13/1.0.0/ivys/ivy.xml
[warn] ==== activator-local: tried
[warn] file:/Users/jjuulliieenn/Documents/Elia/elia/repository/com.typesafe.sbt/sbt-jshint/scala_2.10/sbt_0.13/1.0.0/ivys/ivy.xml
[warn] ==== public: tried
[warn] http://repo1.maven.org/maven2/com/typesafe/sbt/sbt-jshint_2.10_0.13/1.0.0/sbt-jshint-1.0.0.pom
[warn] ==== typesafe-releases: tried
[warn] http://repo.typesafe.com/typesafe/releases/com/typesafe/sbt/sbt-jshint_2.10_0.13/1.0.0/sbt-jshint-1.0.0.pom
[warn] ==== typesafe-ivy-releasez: tried
[warn] http://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.sbt/sbt-jshint/scala_2.10/sbt_0.13/1.0.0/ivys/ivy.xml
[warn] ==== Typesafe repository: tried
[warn] http://repo.typesafe.com/typesafe/releases/com/typesafe/sbt/sbt-jshint_2.10_0.13/1.0.0/sbt-jshint-1.0.0.pom
[info] Resolving com.typesafe.sbt#sbt-rjs;1.0.1 ...
[error] Server access Error: Operation timed out url=http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.typesafe.sbt/sbt-rjs/scala_2.10/sbt_0.13/1.0.1/ivys/ivy.xml
这是Full Log。
答案 0 :(得分:0)
我终于找到了一个解决方案:我做了一个ifconfig,并且我关闭了所有不需要的接口。现在,它可以工作了,但我仍然不明白问题出在哪里。