sbt需要多次重新编译/发现总是有更多变化

时间:2015-09-25 17:06:21

标签: scala caching build compilation sbt

我有一些问题,因为很长一段时间以来。它需要几次编译才能赶上变化,它会在每次完成任务时发现新的东西。它没有像往常一样正确识别要一次性重新编译的所有依赖项。

我试图弄清楚从什么时候起,但它发生了我认为自从我升级到13.6到13.9。虽然如果我现在还原,我仍然可以重现它。

即使我执行干净的项目结账并清理所有内容,问题仍然存在。有谁知道为什么会发生这种情况?

这是一个示例输出,在调用test之间:当然在源文件中编译没有任何改变。

知道如何调试甚至修复此问题吗?

> test:compile
[info] Compiling 31 Scala sources to <project>\target\scala-2.11\classes...
[info] Packaging <project>\target\scala-2.11\frontend-core_2.11-1.8.42-SNAPSHOT.jar ...
[info] Done packaging.
[success] Total time: 18 s, completed 25.09.2015 18:59:45
> test:compile
[info] Compiling 10 Scala sources to <project>\target\scala-2.11\classes...
[warn] <project>\src\main\scala\com\cupenya\frontend\service\EngineDataService.scala:959: match may not be exhaustive.
[info] Packaging <project>\target\scala-2.11\frontend-core_2.11-1.8.42-SNAPSHOT.jar ...
[info] Done packaging.
[success] Total time: 9 s, completed 25.09.2015 19:00:02
> test:compile
[info] Compiling 7 Scala sources to <project>\target\scala-2.11\classes...
[info] Packaging <project>\target\scala-2.11\frontend-core_2.11-1.8.42-SNAPSHOT.jar ...
[info] Done packaging.
[success] Total time: 10 s, completed 25.09.2015 19:00:28
> test:compile
[info] Compiling 4 Scala sources to D:\jpx\IdeaProjects\cupenya-root\frontend-core\target\scala-2.11\classes...
[info] Packaging D:\jpx\IdeaProjects\cupenya-root\frontend-core\target\scala-2.11\frontend-core_2.11-1.8.42-SNAPSHOT.jar ...
[info] Done packaging.
[success] Total time: 9 s, completed 25.09.2015 19:01:31
>

0 个答案:

没有答案