2013-02-20 115 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

相關問題