cobertura-maven-plugin 2.7版抱怨找不到tools.jar!日志告诉我插件正在指定路径 C:\Program Files\Java\jdk-10.0.1/../lib/tools.jar 搜索 com.sun.tools.jar!当然,在这个位置找不到 tools.jar。我在 pom 中声明了 tools.jar 的依赖关系,这在有效的 pom 中导致:
<dependency>
<groupId>com.sun</groupId>
<artifactId>tools</artifactId>
<version>1.8.0</version>
<scope>system</scope>
<systemPath>C:\PROGRA~1\Java\jdk1.8.0_172\lib\tools.jar</systemPath>
</dependency>
这个 SystemPath 是正确的。在我的声明中,我找不到 jdk-10 目录下的 tools.jar 声明。所以问题的根源在于 corbertura maven 插件。有人知道更多吗?