简体   繁体   English

使用Eclipse为Scala创建新的SBT项目

[英]Creating new SBT project for Scala using Eclipse

I have Eclipse (Kepler) and the Scala plugin ( http://scala-ide.org/ ) installed. 我安装了Eclipse(Kepler)和Scala插件( http://scala-ide.org/ )。 With Eclipse, I can create a new Scala project, but its not an sbt project, so cannot add dependencies. 使用Eclipse,我可以创建一个新的Scala项目,但不能创建sbt项目,因此无法添加依赖项。

What is the best way to create a new skeleton sbt project, either within Eclipse, or one which can be imported into Eclipse? 在Eclipse中或可以导入到Eclipse中的新骨架sbt项目的最佳创建方法是什么?

Thanks 谢谢

Create the sbt project yourself, then use the sbt-eclipse plugin to generate your eclipse project. 自己创建sbt项目,然后使用sbt-eclipse插件生成您的eclipse项目。 This should make a .project and .classpath file in your sbt project directory. 这应该在您的sbt项目目录中创建一个.project.classpath文件。 In Eclipse, use the "import existing projects" dialog. 在Eclipse中,使用“导入现有项目”对话框。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM