9

我刚刚使用 . 创建了一个新项目activator new,现在正在尝试使用activator eclipse. 但我面临一个问题:

D:\work\firebase>activator eclipse
[info] Loading project definition from D:\work\firebase\project
[info] Set current project to firebase (in build file:/D:/work/firebase/)
[error] Not a valid command: eclipse (similar: help, alias)
[error] Not a valid project ID: eclipse
[error] Expected ':' (if selecting a configuration)
[error] Not a valid key: eclipse (similar: deliver, licenses, clean)
[error] eclipse
[error]        ^

我正在使用 Typesafe Activator 1.3.2

4

3 回答 3

19

将此片段附加到您的plugins.sbt文件中:

addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "4.0.0")

Play 不再包含 sbteclipse 或 sbt-idea 插件,这使用户能够独立于 Play 升级 IDE 支持。

资源

于 2015-07-02T13:01:18.023 回答
5

根据詹姆斯沃德的说法:

我认为垫片只能由 UI 安装。但是 jsuereth 可以证实。如果是这样,我们需要解决这个问题。一种解决方法是首先在项目上运行 UI ( activator ui),然后您可以使用activator eclipse

来源:https ://github.com/typesafehub/activator/issues/212

于 2015-07-02T13:02:47.230 回答
0

我通过这种方式解决了:

1 添加行 addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "4.0.0")

2 然后运行激活器eclipse

于 2016-04-19T14:25:40.247 回答