如何使用 sbt-eclipse 创建项目的 Eclipse 项目文件?
本文介绍了如何使用 sbt-eclipse 创建项目的 Eclipse 项目文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我按照官方文档在我的sbt项目中设置插件:
I followed the official documentation to set up the plugin in my sbt project:
- 添加
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" %"2.5.0")
到~/.sbt/plugins/plugins.sbt
文件 cd
ed 到一个项目并运行sbt
- 在 sbt shell 中,输入
eclipse
- Added
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.5.0")
to~/.sbt/plugins/plugins.sbt
file cd
ed to a project and ransbt
- In sbt shell, typed
eclipse
这就是我遇到以下错误的地方:
That's where I faced the following error:
我错过了什么?
提前感谢您能给我的任何帮助.
Thanks in advance for any help you can give me.
推荐答案
我使用的是 sbt 0.13.5.
I'm using sbt 0.13.5.
在 empty 目录中执行 sbt about
以检查 build/sbt 设置.
In an empty directory executed sbt about
to check the build/sbt setup.