简体   繁体   中英

SBT multi-project build classpath problems

I have a SBT project I'm trying to separate into a multi-project build.

For some reason, there are a few tests I can't get to work when running the tests from the root build.

These tests use Akka, and it looks something is wrong with the class path - the config is not loaded properly and I get this error:

[error]  com.typesafe.config.ConfigException$Missing: No configuration setting found for key 'akka' (SimpleConfig.java:152)

The dependency is configured for the sub-project, and works fine when I run the tests from within the project itself, and not from the root build.

Does someone know how can I get this to work?

Thanks for your help

我自己刚刚遇到这个问题,我们设法通过在项目中启用fork来解决它:

ThisBuild / fork := true

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM