Play 框架在启动时挂起:“正在加载项目定义" [英] Play framework hangs on startup at: "Loading project definition from"
问题描述
我刚刚开始使用 Play 框架.我已经下载并安装了 play 并创建了一个示例 java 应用程序.当我尝试在应用程序目录中启动播放控制台时,它挂在正在加载项目定义"处.
I am just getting started with Play Framework. I have downloaded and installed play and created a sample java application. When I try to start the play console in the application directory it hangs at "Loading project definition".
PS C:devplayjavatest> play.bat
Getting org.scala-sbt sbt_2.9.1 0.11.3 ...
:: retrieving :: org.scala-sbt#boot-app
confs: [default]
37 artifacts copied, 0 already retrieved (7245kB/283ms)
[info] Loading project definition from C:devplaymyFirstAppproject
当我尝试运行 Scala 应用程序时,我收到一条关于它正在等待锁定的消息:
When i try running a Scala application i get a message about it waiting for a lock:
PS C:devplayscalatest> play
[info] Loading project definition from C:devplay est1project
Waiting for lock on C:libplay
epository.sbt.ivy.lock to be available...
运行 Windows 7、JDK 1.7.0_05 和 Play Framework 2.0.2.有什么想法吗?
Running Windows 7, JDK 1.7.0_05 and Play Framework 2.0.2. Any ideas?
推荐答案
我刚刚在 Play 2 中亲身体验过这个问题,结果证明它并不是真的挂了,它只是拉了一个 Maven 并下载了 Internet.要验证这是否与您遇到的行为相同,请编辑 project/plugins.sbt
并替换:
I just experienced this myself with Play 2 and it turns out it wasn't truly hanging, it was just pulling a maven and downloading the Internet. To verify this is the same behavior you were experiencing edit project/plugins.sbt
and replace:
logLevel := Level.Warn
与
logLevel := Level.Debug
(虽然我是在 OSX 上构建的,但我想你会在 Windows 上体验到类似的输出.)
(Though I am building on OSX I imagine you will experience similar output on Windows.)
这篇关于Play 框架在启动时挂起:“正在加载项目定义"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!