简体   繁体   English

Play Framework无法创建Intellij项目

[英]Play Framework cant create Intellij project

Ive created a Play Application named Worker (folder and files under it is created). Ive创建了一个名为Worker的Play应用程序(已创建文件夹和其下的文件)。

now im running folowing command to create intellij project from this application: 现在,我正在运行以下命令从此应用程序创建intellij项目:

play idealize Worker

which returns: 返回:

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.

How to solve this? 如何解决呢? i already used 2 hours trying... 我已经用了2个小时尝试...

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

Since Play framework 2.1 you have to use command in play console: 从Play Framework 2.1开始,您必须在播放控制台中使用命令:

[my_app] $ idea with-sources=yes

You can also do without entering play console, running command in terminal: 您也可以不输入播放控制台,而在终端中运行命令来执行以下操作:

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

Just remember that you have to be inside directory of your project. 只要记住您必须在项目的目录中即可。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM