我正在尝试下载 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/