gpt4 book ai didi

java - 在中心找不到 Artifact gnu.trove :trove:jar:3. 0.3 (https ://repo. maven.apache.org/maven2)

转载 作者:行者123 更新时间:2023-11-30 01:46:22 25 4
gpt4 key购买 nike

我正在尝试下载 gnu.trove 库,我有这个依赖项:

<!-- https://mvnrepository.com/artifact/gnu.trove/trove -->
<dependency>
<groupId>gnu.trove</groupId>
<artifactId>trove</artifactId>
<version>3.0.3</version>
</dependency>

但我收到此错误:

Could not find artifact gnu.trove:trove:jar:3.0.3 in central (https://repo.maven.apache.org/maven2)
为什么?我应该在 pom.xml 中添加其他存储库吗?现在我列出了这个存储库:

<repository>
<id>jcenter</id>
<name>jcenter-bintray</name>
<url>http://jcenter.bintray.com</url>
</repository>

最佳答案

尝试从 mvnRepository 添加存储库

 <repository>
<id>mvnrepository</id>
<url>http://mvnrepository.com/artifact</url>
</repository>

关于java - 在中心找不到 Artifact gnu.trove :trove:jar:3. 0.3 (https ://repo. maven.apache.org/maven2),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57797412/

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