sbt gen-idea失败:尝试从github导入sbt管理的项目TopNotch

时间:2016-06-07 17:13:41

标签: scala intellij-idea sbt

我在github的TopNotch项目上完成了git clone,并希望将这个sbt项目导入Intellij。

我在TopNotch的根目录下并拥有sbt gen-idea,它失败了“Not a valid command” 链接到TopNotch:https://github.com/blackrock/TopNotch

所以,我在project / plugins.sbt下添加了以下行,但仍然失败了

“bt.ResolveException:unresolved dependency:com.github.mpeltonen#sbt-idea; 1.7.0-SNAPSHOT:not found”

添加的行:(也尝试使用1.5.0-SNAPSHOT“

解析器+ =“Sonatype snapshots”位于“http://oss.sonatype.org/content/repositories/snapshots/” addSbtPlugin(dependency =“com.github.mpeltonen”%“sbt-idea”%“1.7.0-SNAPSHOT”)

我安装了SBT-0.13.11,但构建版本为0.13.8 斯卡拉 - 2.11.8 Java 1.8 Intellij - 2016.1.3

请建议如何导入项目。

谢谢。

1 个答案:

答案 0 :(得分:1)

sbt-idea 插件已被不支持,因为它大约两年前被包含在官方Scala插件中,并且由插件的过时版本生成的项目文件与从版本14开始的IntelliJ IDEA不兼容如果我没记错的话。

常见的方法是从IDEA安装Scala插件(设置>插件>安装JetBrains插件>搜索Scala),然后使用标准打开... 对话框导入您的SBT项目