我在 Play 2.1.0 中为新项目设置 IDE 时遇到问题。我更喜欢 netbeans,当我运行时
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,但适用于 Idea。
最佳答案
您需要添加依赖项才能使用 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
关于java - Play Framework 2.1 IDE 设置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14970746/