我有 scala mvn 项目。scala 的版本是 2.12.3 和 scoverage-maven-plugin。1.3.0 将 scala 版本从 2.12.3 更新到 2.12.13 后出现错误
[ERROR] error: java.lang.NoSuchMethodError: scala.tools.nsc.Global.reporter()Lscala/tools/nsc/reporters/Reporter;
通过查看https://github.com/scoverage/sbt-scoverage/issues/321和相关提交,似乎使用 scalac-scoverage v1.4.3 可以修复它,所以我试图强制它使用不同的这样:
<plugin>
<groupId>org.scoverage</groupId>
<artifactId>scoverage-maven-plugin</artifactId>
<version>${scoverage.plugin.version}</version>
<configuration>
<scalaVersion>2.12.13</scalaVersion>
<scalacPluginVersion>1.4.3</scalacPluginVersion>
</configuration>
</plugin>
但我有一个新错误:
Failure to find org.scoverage:scalac-scoverage-plugin_2.12:jar:1.4.3 in http://repo.mal.internal/content/groups/public was cached in the local rep
ository, resolution will not be reattempted until the update interval of internal.mirror has elapsed or updates are forced
但scalaVersion
param 只接受 2.10 或 2.11 或 2.13。我该如何解决这个错误?