2

当我尝试从 play 2.0.4 升级到 2.1.1 时,我似乎一直遇到问题。我遵循了迁移指南中的所有内容。首先,它一直在抱怨我的代理。我想当我运行 play clean 时,我终于通过添加 -DhttpProxyHost、User 等解决了这个问题。现在我遇到了这个问题。我发现一些人有类似的问题,但我认为如何解决这个问题没有明确的解决方案。任何帮助将不胜感激!!!!

Getting org.scala-sbt sbt_2.9.1 0.12.2 ...

:: problems summary ::
:::: WARNINGS
        module not found: org.scala-sbt#sbt_2.9.1;0.12.2

    ==== local: tried

      /Users/wlam/Dev/play/play-2.0.2/framework/../repository/local/org.scala-sbt/sbt_2.9.1/0.12.2/ivys/ivy.xml

    ==== Maven2 Local: tried

      file:///Users/wlam/.m2/repository/org/scala-sbt/sbt_2.9.1/0.12.2/sbt_2.9.1-0.12.2.pom

    ==== typesafe-ivy-releases: tried

      http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt_2.9.1/0.12.2/ivys/ivy.xml

    ==== Maven Central: tried

      http://repo1.maven.org/maven2/org/scala-sbt/sbt_2.9.1/0.12.2/sbt_2.9.1-0.12.2.pom

        ::::::::::::::::::::::::::::::::::::::::::::::

        ::          UNRESOLVED DEPENDENCIES         ::

        ::::::::::::::::::::::::::::::::::::::::::::::

        :: org.scala-sbt#sbt_2.9.1;0.12.2: not found

        ::::::::::::::::::::::::::::::::::::::::::::::



:: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
unresolved dependency: org.scala-sbt#sbt_2.9.1;0.12.2: not found
Error during sbt execution: Error retrieving required libraries
  (see /Users/wlam/Dev/play/play-2.0.2/framework/sbt/boot/update.log for complete log)
Error: Could not retrieve sbt 0.12.2
4

1 回答 1

2

您还需要安装 Play 2.1 并使用它来启动您的项目。目前您正在运行使用 Scala 2.9 的 2.0.2,而 Play 2.1 仅适用于 Scala 2.10。

sbt 0.12.2 似乎只适用于 Scala 2.9.2,而不是 2.9.1。

于 2013-06-03T20:01:40.343 回答