0

测试在 中运行没有任何问题sbt,但是当您在IntelliJ中需要它们时,它们会失败。

A needed class was not found. This could be due to an error in your runpath.
Missing class: scoverage/Invoker$
java.lang.NoClassDefFoundError: scoverage/Invoker$

这些年来,我看到很多人建议如何解决它,但没有任何帮助。:)

4

1 回答 1

0

终于找到了一个对我有用的解决方案:

暂时禁用有问题的项目的scoverage插件sbt

lazy val pipeline: Project = project
...
  .disablePlugins(ScoverageSbtPlugin) // <-- temp

奖励:测试也运行得更快。

于 2021-09-14T15:34:45.480 回答