简体   繁体   中英

Play Framework 2.1 IDE Setup

I'm having trouble setting up the IDE for a new project in Play 2.1.0. I prefer netbeans and when I run

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.

You need to add a dependency to use the Netbeans project generator.

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 .

First edit the plugins.sbt file

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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