Playframework 升级到2.2.2后加载项目定义时,播放(Java)挂起

Playframework 升级到2.2.2后加载项目定义时,播放(Java)挂起,playframework,playframework-2.2,Playframework,Playframework 2.2,我刚从Play 2.2.0升级到2.2.2。执行此操作后,从我的项目运行任何play命令都会导致它在加载项目定义时挂起。查看问题后,我将我的logLevel设置为Debug,以查看它挂起的位置。在这个阶段,它似乎总是挂起: [info]解析com.typesafe.play#routes-compiler_2.10;2.2.2 ... [调试]sbt链:检查缓存:dependency:com.typesafe.play#routes-compiler_2.10;2.2.2{compile=[默认

我刚从Play 2.2.0升级到2.2.2。执行此操作后,从我的项目运行任何play命令都会导致它在加载项目定义时挂起。查看问题后,我将我的
logLevel
设置为
Debug
,以查看它挂起的位置。在这个阶段,它似乎总是挂起:

[info]解析com.typesafe.play#routes-compiler_2.10;2.2.2 ...
[调试]sbt链:检查缓存:dependency:com.typesafe.play#routes-compiler_2.10;2.2.2{compile=[默认(编译)]}
[调试]已尝试http://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.play/routes-compiler_2.10/2.2.2/ivys/ivy.xml
[调试]客户端错误:找不到url=http://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.play/routes-compiler_2.10/2.2.2/ivys/ivy.xml
[调试]typesafe常春藤版本:未找到com.typesafe.play#routes-compiler_2.10的常春藤文件;2.2.2
[调试]已尝试http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.typesafe.play/routes-compiler_2.10/2.2.2/ivys/ivy.xml

错误消息似乎是正确的,因为遵循这些URL会给我一个
notfound
错误

作为一种理智的检查,我还尝试创建一个全新的Java项目,并使用play获得完全相同的行为。还有其他人经历过吗

作为参考,这是我的build.sbt文件:

name := "appname"

version := "1.0-SNAPSHOT"

libraryDependencies ++= Seq(
  javaJdbc,
  javaEbean,
  cache,
  "postgresql" % "postgresql" % "9.1-901-1.jdbc4",
  "org.apache.httpcomponents" % "httpclient" % "4.3.2",
  "commons-codec" % "commons-codec" % "1.9",
  "com.google.guava" % "guava" % "15.0",
  "com.typesafe.play" %% "play-jdbc" % "2.2.0" exclude("com.jolbox", "bonecp"),
  "com.jolbox" % "bonecp" % "0.8.0.RELEASE"
)     

play.Project.playJavaSettings
// Comment to get more information during initialization
logLevel := Level.Debug

// The Typesafe repository
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/"

// Use the Play sbt plugin for Play projects
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.2.2")
我的build.properties文件:

sbt.version=0.13.0

和我的plugins.sbt文件:

name := "appname"

version := "1.0-SNAPSHOT"

libraryDependencies ++= Seq(
  javaJdbc,
  javaEbean,
  cache,
  "postgresql" % "postgresql" % "9.1-901-1.jdbc4",
  "org.apache.httpcomponents" % "httpclient" % "4.3.2",
  "commons-codec" % "commons-codec" % "1.9",
  "com.google.guava" % "guava" % "15.0",
  "com.typesafe.play" %% "play-jdbc" % "2.2.0" exclude("com.jolbox", "bonecp"),
  "com.jolbox" % "bonecp" % "0.8.0.RELEASE"
)     

play.Project.playJavaSettings
// Comment to get more information during initialization
logLevel := Level.Debug

// The Typesafe repository
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/"

// Use the Play sbt plugin for Play projects
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.2.2")

所以,事实证明,实际发生的情况是,Play似乎正在超时(非常慢)从服务器下载各种.jar文件

通过“我的浏览器”手动下载文件并将其放置在中的相关文件夹中

$play/repository/cache


似乎已经为我解决了这个问题。

在我的情况下,这是因为play(bin工具)版本与
project/plugins.sbt
中定义的sbt版本不同。而播放则会准确地打印出这条警告。所以首先要确保这两个版本是相同的

或者,对我来说,“更耐心”