Play Framework无法创建Intellij项目

时间:2013-12-22 20:03:27

标签: java playframework

我创建了一个名为Worker的Play应用程序(文件夹及其下的文件已创建)。

现在我正在运行以下命令来从这个应用程序创建intellij项目:

play idealize Worker

返回:

play 2.2.1 built with Scala 2.10.2 (running Java 1.7.0_40), http://www.playfram
work.com

This is not a play application!

Use `play new` to create a new Play application in the current directory,
or go to an existing application and launch the development console using `play
.

You can also browse the complete documentation at http://www.playframework.com.

如何解决这个问题?我已经用了2个小时了...

1 个答案:

答案 0 :(得分:1)

根据Play!文档:http://www.playframework.com/documentation/2.1.x/IDE

从Play framework 2.1开始,你必须在play console中使用命令:

[my_app] $ idea with-sources=yes

您也可以不进入播放控制台,在终端中运行命令:

[my_app] $ play "idea with-sources=yes"

请记住,您必须在项目的目录中。

相关问题