我已经下载了这两个项目,其中bitcoinj已重新设置为正确的v0.11.3标签:

https://github.com/schildbach/bitcoin-wallet/
https://github.com/bitcoinj/bitcoinj

bitcoin-wallet项目将bitcoinj 0.11.3作为对Maven回购的依赖,并且运行良好。然后我将其更改为使用<scope>system</scope>来查找我构建的本地bitcoinj .jar。自从我这样做以来,这个比特币钱包一直抱怨(每次导入和使用未定义符号都会出错):

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project wallet: Compilation failure: Compilation failure:
[ERROR] /.../bitcoin-wallet/wallet/src/de/schildbach/wallet/util/Crypto.java:[31,31] package org.spongycastle.crypto does not exist


这很奇怪,因为bitcoinj也会导入org.spongycastle.crypto...,但是它可以正确构建。我在pom文件中的每个地方都找不到对海绵宝宝依赖项的引用。比特币钱包不做些什么?

最佳答案

BitcoinJ,他的充气城堡被另一个依赖隐藏了:

    <dependency>
        <groupId>com.madgag</groupId>
        <artifactId>sc-light-jdk15on</artifactId>
        <version>1.47.0.2</version>
    </dependency>

10-08 08:42