播放框架在启动时挂在以下位置:“从...加载项目定义". [英] Play framework hangs on startup at: "Loading project definition from"
问题描述
我刚刚开始使用Play Framework.我已经下载并安装了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:\dev\play\javatest> 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:\dev\play\myFirstApp\project
当我尝试运行Scala应用程序时,我收到一条有关其等待锁的消息:
When i try running a Scala application i get a message about it waiting for a lock:
PS C:\dev\play\scalatest> play
[info] Loading project definition from C:\dev\play\test1\project
Waiting for lock on C:\lib\play\repository\.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上亲身经历了这一发现,事实证明这并不是真正的困扰,只是在拉动专家并下载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.)
这篇关于播放框架在启动时挂在以下位置:“从...加载项目定义".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!