不是有效密钥:eclipse(类似:交付、许可、清理)
Not a valid key: eclipse (similar: deliver, licenses, clean)
我已经下载了 typesafe activator 并按照以下步骤操作
activator new HelloWorld play-java
cd HelloWorld
activator build
activator eclipse
我收到一个错误
[warn] The global sbt directory is now versioned and is located at /Users/abhi/.sbt/0.13.
[warn] You are seeing this warning because there is global configuration in /Users/abhi/.sbt but not in /Users/abhi/.sbt/0.13.
[warn] The global sbt directory may be changed via the sbt.global.base system property.
[info] Loading project definition from /Users/abhi/JavaProjects/HelloWorld/project
[warn] The global sbt directory is now versioned and is located at /Users/abhi/.sbt/0.13.
[warn] You are seeing this warning because there is global configuration in /Users/abhi/.sbt but not in /Users/abhi/.sbt/0.13.
[warn] The global sbt directory may be changed via the sbt.global.base system property.
[info] Set current project to HelloWorld (in build file:/Users/abhi/JavaProjects/HelloWorld/)
[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] ^
我用谷歌搜索了这个问题并找到了
How to use sbt-eclipse to create Eclipse project files of a project?
Installing sbteclipse
我无法在这些线程中找到答案。我确实创建了一个目录
cd ~/.sbt
mkdir plugins
touch plugins.sbt
但我仍然收到此错误。有人有 "concise" 有效的解决方案吗?
在最新的 Play 版本中,默认情况下不包含 sbteclipse 插件。这就是激活器不理解 "eclipse" 命令的原因。
转到您已经创建的项目文件夹并将以下行附加到 project/plugins.sbt:
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "4.0.0")
然后执行以下命令:
activator
compile
eclipse
的更多信息
我已经下载了 typesafe activator 并按照以下步骤操作
activator new HelloWorld play-java
cd HelloWorld
activator build
activator eclipse
我收到一个错误
[warn] The global sbt directory is now versioned and is located at /Users/abhi/.sbt/0.13.
[warn] You are seeing this warning because there is global configuration in /Users/abhi/.sbt but not in /Users/abhi/.sbt/0.13.
[warn] The global sbt directory may be changed via the sbt.global.base system property.
[info] Loading project definition from /Users/abhi/JavaProjects/HelloWorld/project
[warn] The global sbt directory is now versioned and is located at /Users/abhi/.sbt/0.13.
[warn] You are seeing this warning because there is global configuration in /Users/abhi/.sbt but not in /Users/abhi/.sbt/0.13.
[warn] The global sbt directory may be changed via the sbt.global.base system property.
[info] Set current project to HelloWorld (in build file:/Users/abhi/JavaProjects/HelloWorld/)
[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] ^
我用谷歌搜索了这个问题并找到了
How to use sbt-eclipse to create Eclipse project files of a project?
Installing sbteclipse
我无法在这些线程中找到答案。我确实创建了一个目录
cd ~/.sbt
mkdir plugins
touch plugins.sbt
但我仍然收到此错误。有人有 "concise" 有效的解决方案吗?
在最新的 Play 版本中,默认情况下不包含 sbteclipse 插件。这就是激活器不理解 "eclipse" 命令的原因。
转到您已经创建的项目文件夹并将以下行附加到 project/plugins.sbt:
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "4.0.0")
然后执行以下命令:
activator
compile
eclipse
的更多信息