2013-02-20 59 views
0

我在为Play 2.1.0中的新项目设置IDE时遇到问题。我更喜欢NetBeans和当我运行Play Framework 2.1 IDE设置

play netbeans 

我得到以下错误:

[error] Not a valid command: netbeans 
[error] Expected '/' 
[error] Expected ':' 
[error] Not a valid key: netbeans (similar: test, tags, streams) 
[error] netbeans 
[error]  ^

有趣的是它也似乎并没有为Eclipse工作,但它确实为理念。

+0

'$发挥; eclipse with-source = true;对2.1用得很好。 – atamanroman 2013-02-20 09:37:27

+0

你的问题解决了吗? – 2013-02-22 20:27:31

回答

2

您需要添加依赖项以使用Netbeans项目生成器。

Play does not have native Netbeans project generation support at this time. For now you can generate a Netbeans Scala project with the Netbeans SBT plugin .

首先编辑plugins.sbt文件

resolvers += { 
    "remeniuk repo" at "http://remeniuk.github.com/maven" 
} 

libraryDependencies += { 
    "org.netbeans" %% "sbt-netbeans-plugin" % "0.1.4" 
} 

现在运行

$ play netbeans 

来源:Setting up your preferred IDE