Scala sbt多模块项目:集成测试的相互依赖性
我有一个多模块sbt项目,每个模块都有集成测试。模块Scala sbt多模块项目:集成测试的相互依赖性,scala,sbt,multi-module,Scala,Sbt,Multi Module,我有一个多模块sbt项目,每个模块都有集成测试。模块a取决于模块b的编译、测试和集成测试范围。因此,我在Build.scala中进行了如下设置: lazy val authorizationdeciderservice = Project( id = "a", base = file("modules/a"), configurations = Seq(IntegrationTest), dependencies = Seq(b % "compile;it->test;it
a
取决于模块b
的编译、测试和集成测试范围。因此,我在Build.scala中进行了如下设置:
lazy val authorizationdeciderservice = Project(
id = "a",
base = file("modules/a"),
configurations = Seq(IntegrationTest),
dependencies = Seq(b % "compile;it->test;it")
)
现在,compile
和it->test
依赖关系可以正常工作,但是it
依赖关系不能正常工作,因为我无法从a
中的集成测试访问b
中的it
路径上的资源
问题可能是什么?
b%”编译;it->test;it“
与b%”编译->编译;it->test;it->compile”相同。要从a中的集成测试访问b中it路径上的资源,应该有“it->it”
我遇到了相同的问题:\