【发布时间】:2013-06-17 23:47:21
【问题描述】:
我有一个由多个子项目组成的项目。比方说,我有三个: 服务 核 常见的
在我的 build.scala 中,我有以下定义
lazy val root = Project ("root", file("."), settings = Info.settings) aggregate(common, core, service)
lazy val common = Project("common", file("common"), settings = Info.settings)
lazy val core = Project ("core", file("appcore"), settings = Info.settings ++ Seq(libraryDependencies ++= dependencies)) dependsOn common
lazy val security = Project ("Service", file("service"), settings = Info.gatewaySettings ++ Seq(resolvers := packageResolvers, libraryDependencies ++= gatewayDeps)) dependsOn(common, core)
我使用idea进行开发,因此使用sbt-idea 1.4.0来生成idea特定文件。
我在“common”中创建了一个类:User 在包com.project.common.domain 中,我想从我的“服务”模块中使用它。我不能。它根本看不到它。我检查了 iml 文件,它包含依赖项。
有人看过这个问题吗?
【问题讨论】: