【发布时间】:2020-11-08 13:39:58
【问题描述】:
我的 pom 中有 aspectj-maven-plugin:1.11,我的系统上安装了 jdk 11。 Jdk 11 在 lib 目录中没有 tools.jar。这导致 Maven 构建失败并出现错误:
[ERROR] 未能执行目标 org.codehaus.mojo:aspectj-maven-plugin:1.11:compile (default) on 项目groundtruth-storage-writer:目标的执行默认值 org.codehaus.mojo:aspectj-maven-plugin:1.11:compile failed: Plugin org.codehaus.mojo:aspectj-maven-plugin:1.11 或其依赖项之一 无法解决:找不到工件 com.sun:tools:jar:11.0.7 在指定路径 ...\Java\jdk-11.0.7/../lib/tools.jar
如何解决这个问题?
有一个答案here,不过那是2岁多了。
【问题讨论】:
标签: java maven-plugin aspectj java-11