[英]Play Framework 2.1 IDE Setup
I'm having trouble setting up the IDE for a new project in Play 2.1.0. 我在Play 2.1.0中为新项目设置IDE时遇到问题。 I prefer netbeans and when I run 我喜欢netbeans,当我跑步时
play netbeans
I get the following error: 我收到以下错误:
[error] Not a valid command: netbeans
[error] Expected '/'
[error] Expected ':'
[error] Not a valid key: netbeans (similar: test, tags, streams)
[error] netbeans
[error] ^
Interestingly it also doesn't seem to work for Eclipse, but it does for Idea. 有趣的是,它似乎也不适用于Eclipse,但它适用于Idea。
You need to add a dependency to use the Netbeans project generator. 您需要添加依赖项才能使用Netbeans项目生成器。
Play does not have native Netbeans project generation support at this time. Play目前没有本机Netbeans项目生成支持。 For now you can generate a Netbeans Scala project with the Netbeans SBT plugin . 现在,您可以使用Netbeans SBT插件生成Netbeans Scala项目。
First edit the plugins.sbt file 首先编辑plugins.sbt文件
resolvers += {
"remeniuk repo" at "http://remeniuk.github.com/maven"
}
libraryDependencies += {
"org.netbeans" %% "sbt-netbeans-plugin" % "0.1.4"
}
Now run 现在跑
$ play netbeans
Source: Setting up your preferred IDE 来源: 设置首选IDE
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.