我已经下载了这两个项目,bitcoinj被重新命名为正确的v0.11.3标记:
https://github.com/schildbach/bitcoin-wallet/
https://github.com/bitcoinj/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文件中任何地方的spongycastle依赖项的任何引用。什么是bitcoinj做那个比特币钱包不?
答案 0 :(得分:1)
BitcoinJ,有另一个依赖隐藏的bouncycastle:
<dependency>
<groupId>com.madgag</groupId>
<artifactId>sc-light-jdk15on</artifactId>
<version>1.47.0.2</version>
</dependency>