尝试使用以下命令构建hadoop-common项目 命令
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。
答案 0 :(得分:1)
Hadoop requires Java 8 to build,仍然。
可以在https://issues.apache.org/jira/browse/HADOOP-15338跟踪Java 11的进度