问题描述
我正在使用sbt 0.13,我想添加sbteclipse插件,以便eclipse导入我的sbt项目,并且我可以轻松编写我的scala代码。在互联网上搜索时,我获得了链接。我阅读了所有制作plugins.sbt文件的说明,并在其中添加了插件,但是我对要下载的内容感到困惑,在下载此zip文件后,我接下来应该做什么。
I am using sbt 0.13 and I would like to add sbteclipse plugin so that eclipse import my sbt project and I can write my scala code easily. While searching on the internet I got this link. I read all the instruction that to make plugins.sbt file and added plugin in it but I am confused about what to download and after downloading this zip file what should I do next please.
有任何建议吗?
推荐答案
无需下载任何内容用手。只需遵循sbt 0.13及更高版本的说明即可。
There is no need to download anything by hand. Just follow the instructions for sbt 0.13 and higher.
将其添加到plugins.sbt
Add this to your plugins.sbt
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "5.2.4")
启动sbt shell并键入eclipse。
Start the sbt shell and type eclipse.
这会自动下载插件并为您创建eclipse项目文件。
This automaticly downloads the plugin and creates the eclipse project files for you.
现在,您可以通过Eclipse中的导入项目向导导入项目。
Now you can just import the project via the import project wizard in eclipse.
您可以在github上的README文件中找到此说明。 :
You can find this instructions at the README file on github:https://github.com/typesafehub/sbteclipse/blob/master/README.md
这篇关于如何在Eclipse中添加sbteclipse插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!