提问人:farsoback 提问时间:11/13/2023 最后编辑:Mark Rotteveelfarsoback 更新时间:11/13/2023 访问量:42
我该如何解决?:在以太坊中找不到工件 org.ethereum:rocksdbjni:pom:5.9.2 (https://dl.bintray.com/ethereum/maven/)
How can I fix it? : Could not find artifact org.ethereum:rocksdbjni:pom:5.9.2 in ethereum (https://dl.bintray.com/ethereum/maven/)
问:
在我的Java SDK项目中需要与区块链进行交互。我的环境是 Windows、IDEA、JDK17。我的 pom.xml 文件中有这样一个仓库引用。
<repositories>
<repository>
<id>ethereum</id>
<name>ethereum</name>
<url>https://dl.bintray.com/ethereum/maven/</url>
</repository>
</repositories>
但是发生了这个错误。我无法访问此 URL。
在以太坊中找不到工件 org.ethereum:rocksdbjni:pom:5.9.2 (https://dl.bintray.com/ethereum/maven/)
如何修复此错误?
答:
0赞
Mark Rotteveel
11/13/2023
#1
您引用的 Maven 存储库托管在 Bintray 上,但 Bintray 已于 2021 年关闭,现在对主机的所有请求都会导致 HTTP 404 not found 错误。dl.bintray.com
您需要找到替换存储库,或使用正常的依赖项。虽然需要明确的是,我不知道这是否有效,因为我想以太坊项目发布一个单独的工件是有特殊原因的。rocksdbjni
无论如何,正常的 RocksDB 依赖项是在 Maven Central 上:
<dependency>
<groupId>org.rocksdb</groupId>
<artifactId>rocksdbjni</artifactId>
<version>5.9.2</version>
</dependency>
(仅供参考,这是 2018 年的版本,此时的最新版本是 2023 年 11 月 8 日的 8.6.7。
评论
org.ethereum:rocksdbjni