【发布时间】:2015-08-28 15:52:22
【问题描述】:
我在 IntelliJ 中有一个多模块项目,如此屏幕截图所示,contexProcessor 模块依赖于 contextSummary 模块。
一旦我在项目结构中设置了依赖项,IntelliJ 就会处理所有事情。
但是,当我在build.sbt 中使用以下设置运行sbt test 时,我收到一个错误,抱怨它在 contextSummary 模块中找不到包。
name := "contextProcessor"
version := "1.0"
scalaVersion := "2.11.7"
libraryDependencies += "org.scalatest" % "scalatest_2.11" % "2.2.2" % "test"
如何教 sbt 找到缺失的模块?
【问题讨论】:
标签: scala intellij-idea sbt