gpt4 book ai didi

playframework - 不是有效的 key : eclipse (similar: deliver, 许可证,干净)

转载 作者:行者123 更新时间:2023-12-04 06:36:08 25 4
gpt4 key购买 nike

我已经下载了类型安全激活器并遵循了以下步骤

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

但我仍然收到这个错误。有没有人有一个有效的“简洁”解决方案?

最佳答案

在最新的 Play 版本中,默认情况下不包含 sbteclipse 插件。这就是为什么激活器不理解“eclipse”命令的原因。

转到您已经创建的项目文件夹并将以下行附加到 project/plugins.sbt:

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

然后执行以下命令:
activator
compile
eclipse

有关 official website 的更多信息

关于playframework - 不是有效的 key : eclipse (similar: deliver, 许可证,干净),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31888014/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com