尝试使用命令构建hadoop公共项目,
mvn generate-sources generate-test-sources
生成失败,错误为:
[ERROR] Failed to execute goal on project hadoop-annotations: Could not resolve dependencies for project org.apache.hadoop:hadoop-annotations:jar:3.0.0-SNAPSHOT: Could not find artifact jdk.tools:jdk.tools:jar:1.6 at specified path /usr/lib/jvm/java-11-openjdk-amd64/../lib/tools.jar -> http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
openjdk-11版本中缺少tools.jar。
1条答案
按热度按时间eeq64g8w1#
hadoop仍然需要java8来构建。
Java11的进展可以在https://issues.apache.org/jira/browse/hadoop-15338