简体   繁体   English

由于缺少工件 jdk.tools:jar,使用 Maven 的 hadoop-common 构建失败

[英]hadoop-common build using maven failed due to missing artifact jdk.tools:jar

trying to build the hadoop-common project using the command,尝试使用命令构建 hadoop-common 项目,

  mvn generate-sources generate-test-sources

The build failed with error:构建失败并出现错误:

[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

The tools.jar is missing in openjdk-11 version. openjdk-11 版本中缺少 tools.jar。

Hadoop requires Java 8 to build , still. Hadoop 仍然需要 Java 8 来构建

Java 11 progress can be tracked at https://issues.apache.org/jira/browse/HADOOP-15338可以在https://issues.apache.org/jira/browse/HADOOP-15338跟踪 Java 11 的进展

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用 Eclipse / Maven 构建 Hadoop - 缺少工件 jdk.tools:jdk.tools:jar:1.6 - Buiding Hadoop with Eclipse / Maven - Missing artifact jdk.tools:jdk.tools:jar:1.6 在 java 项目的 pom.xml 中,我缺少工件 jdk.tools:jdk.tools:jar:1.6 错误 - In the pom.xml for a java project, I get missing artifact jdk.tools:jdk.tools:jar:1.6 error GCP 数据融合:自定义插件测试:找不到工件 jdk.tools:jdk.tools:jar:1.6 - GCP Data Fusion : Custom Plugin Testing: Could not find artifact jdk.tools:jdk.tools:jar:1.6 由于缺少 tools.jar,Maven AspectJ 插件无法使用 Java 9 构建 - Maven AspectJ plugin fails to build with Java 9 due to missing tools.jar 构建错误:缺少工件 com.sun:tools:jar:1.6 - Build error: missing artifact com.sun:tools:jar:1.6 使用Maven尝试构建时缺少工件 - Missing artifact in attempted build using Maven Maven依赖项在中央存储库中没有jar,并且由于没有工件,Maven构建失败 - Maven dependency has no jar in the central repo and the maven build fails due to no artifact 缺少工件 com.sun:tools:jar - Missing artifact com.sun:tools:jar Maven 项目构建 wget jar 由于 SSLHandshakeException 使用 download-maven-plugin 下载失败:ValidatorException:PKIX 路径构建失败 - Maven project build wget jar download using download-maven-plugin failed due to SSLHandshakeException:ValidatorException:PKIX path building failed Hadoop Build失败(Hadoop src 2.2.0)在Windows 7上,Maven 3.1.1,Jdk 1.7.0_45 - Hadoop Build failed (Hadoop src 2.2.0) on Windows 7, Maven 3.1.1, Jdk 1.7.0_45
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM