gpt4 book ai didi

java - 以下 Artifact 无法解析 : org. apache.hbase :hbase:jar:0. 96.1.1-hadoop2

转载 作者:行者123 更新时间:2023-11-30 08:23:37 25 4
gpt4 key购买 nike

我尝试采取以下步骤:右键单击 pom.xml 并在 eclipse 中运行 maven install 但我收到此错误:

[ERROR] Failed to execute goal on project tt: Could not resolve dependencies for project com.sunshineatnoon:tt:jar:0.0.1-SNAPSHOT: The following artifacts could not be resolved: org.apache.hbase:hbase:jar:0.96.1.1-hadoop2, com.yahoo.ycsb:core:jar:0.1.4: Failure to find org.apache.hbase:hbase:jar:0.96.1.1-hadoop2 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]

但是,当我查看 http://repo.maven.apache.org/maven2 时,确实存在这个 org.apache.hbase:hbase:jar:0.96.1.1-hadoop2。

我的pom.xml如下:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.sunshineatnoon</groupId>
<artifactId>tt</artifactId>
<version>0.0.1-SNAPSHOT</version>

<dependencies>
<dependency>
<groupId>org.apache.hbase</groupId>
<artifactId>hbase</artifactId>
<version>0.96.1.1-hadoop2</version>
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-client</artifactId>
<version>2.2.0</version>
</dependency>
<dependency>
<groupId>com.yahoo.ycsb</groupId>
<artifactId>core</artifactId>
<version>0.1.4</version>
</dependency>
</dependencies>

</project>

我该如何解决这个问题?任何帮助将不胜感激,在此先感谢!

最佳答案

Maven 将所有依赖项拉取到您的本地计算机。默认路径为 ${USER_HOME}/.m2/repository。在这里你应该看到下面的依赖是否真的存在。您还在使用多个存储库吗? Maven 会将文件放在它认为存在冲突“_maven.repositories”的文件夹下,我通常会删除这些文件,因为它也会产生上述错误。

org.apache.hbase:hbase:jar:0.96.1.1-hadoop2
${USER_HOME}/.m2/repository/org/apache/hbase/hbase/0.96.1.1-hadoop2

com.yahoo.ycsb:core:jar:0.1.4
${USER_HOME}/.m2/repository/com/yahoo/ycsb/core/0.1.4

关于java - 以下 Artifact 无法解析 : org. apache.hbase :hbase:jar:0. 96.1.1-hadoop2,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23543569/

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