我有一个多模块sbt项目。当我更改模块中的某些源代码时,其他模块看不到intellJ中的更改。 当我尝试导航时,它转到声明,而不是导航到源,它导航到编译的jar文件。
当我从项目设置中的库依赖项中删除jar时,它工作正常。我认为因为它重新编译所以工作正常,直到下一次改变。并且sbt编译工作正常,但我想问题是因为Build.scala设置,项目依赖项可能有订单问题。这是依赖项;
lazy val root = Project(
id = "xx-main",
base = file("."),
settings = commonSettings)
.aggregate(utils, models, commons, dao, te)
.dependsOn(utils, models, commons, dao)
lazy val utils = Project(
id = "xx-utils",
base = file("xx-utils"))
.settings(commonSettings: _*)
lazy val commons = Project(
id = "xx-commons",
base = file("xx-commons"))
.settings(commonSettings: _*)
.dependsOn(utils, models)
lazy val models = Project(
id = "xx-models",
base = file("xx-models"),
settings = commonSettings)
.dependsOn(utils)
lazy val dao = Project(
id = "xx-dao",
base = file("xx-dao"))
.settings(commonSettings: _*)
.dependsOn(utils, models)
lazy val te = Project(
id = "xx-te",
base = file("xx-te"))
.settings(commonSettings: _*)
.dependsOn(utils, models, dao, commons)