gpt4 book ai didi

java - 构建和安装 Apache Atlas 时出错

转载 作者:行者123 更新时间:2023-11-30 02:17:30 24 4
gpt4 key购买 nike

我试图使用 this link 设置 apache atlas .

运行时:

export MAVEN_OPTS="-Xmx1536m -XX:MaxPermSize=512m" && mvn clean install

我遇到以下构建失败:

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 04:00 min
[INFO] Finished at: 2017-12-18T15:49:16+05:30
[INFO] Final Memory: 80M/268M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project atlas-hbase-client-shaded:
Could not resolve dependencies for project org.apache.atlas:atlas-hbase-client-shaded:jar:1.0.0-SNAPSHOT:
Could not find artifact jdk.tools:jdk.tools:jar:1.7 at specified path /Library/Java/JavaVirtualMachines/jdk-9.0.1.jdk/Contents/Home/../lib/tools.jar

请告诉我如何解决这个问题。

echo $JAVA_HOME
/Library/Java/JavaVirtualMachines/jdk-9.0.1.jdk/Contents/Home

如果有其他需要,请告诉我。

最佳答案

http://hadoopinrealworld.com/missing-artifact-jdk-tools-jar/ 上找到此内容解决问题非常容易。只需将以下依赖项添加到您的 pom.xml 中即可。

<groupId>jdk.tools</groupId>
<artifactId>jdk.tools</artifactId>
<version>1.7.0_05</version>
<scope>system</scope>
<systemPath>${JAVA_HOME}/lib/tools.jar</systemPath>
</dependency>

关于java - 构建和安装 Apache Atlas 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47866447/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com