简体   繁体   English

如何在Scala项目的SBT库中指向Intellij

[英]How to Point Intellij at SBT Libraries for Scala Project

I'm trying to use this example: https://github.com/spray/spray-template for a Spray project, however I can't figure out how to point Intellij at the dependencies downloaded via SBT. 我正在尝试使用这个示例: https//github.com/spray/spray-template用于Spray项目,但是我无法弄清楚如何将Intellij指向通过SBT下载的依赖项。

Any suggestions? 有什么建议?

If you're using IntelliJ version 13, you need only the Scala plug-in (which has built-in SBT support); 如果您使用的是IntelliJ 13版,则只需要Scala插件(内置SBT支持); just open the project by selecting the build.sbt file. 只需通过选择build.sbt文件打开项目。

使用此SBT插件生成Intellij IDEA项目文件: https//github.com/mpeltonen/sbt-idea

Add SBT plugin for creating IntelliJ IDEA projects in your ~/.sbt/0.xx/plugins/build.sbt or PROJECT_DIR/project/plugins.sbt. 添加SBT插件,用于在〜/ .sbt / 0.xx / plugins / build.sbt或PROJECT_DIR / project / plugins.sbt中创建IntelliJ IDEA项目。 Use gen-idea command to create an IntelliJ project and open the project in IntelliJ. 使用gen-idea命令创建IntelliJ项目并在IntelliJ中open the project That should be it. 那应该是它。

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

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