Add btcd-cli4j lib as local build jar instead of using http repo. Add exclude for diff. version dependencies.

This commit is contained in:
Manfred Karrer 2017-02-20 14:29:58 -05:00
parent fb63fd7c94
commit 159b208273
4 changed files with 42 additions and 10 deletions

View file

@ -29,16 +29,47 @@
<version>4.8</version>
</dependency>
<!-- TODO host on https or include in project -->
<!-- We use a local project atm but should be added either as jar or to a https repo.
Default repo for that project is http only, so it is unsafe to use.-->
<dependency>
<groupId>com.neemre.btcd-cli4j</groupId>
<artifactId>btcd-cli4j-core</artifactId>
<version>0.5.1</version>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.neemre.btcd-cli4j</groupId>
<artifactId>btcd-cli4j-daemon</artifactId>
<version>0.5.1</version>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</project>

View file

@ -74,7 +74,7 @@ For Mac OSX, you will need to set JAVA_HOME as:
$ . ~/.bashrc
Build bitcoinj
Build bitcoinj and btcd-cli4j fork
-----------------
### 2. Install bitcoinj fork
> _**NOTE:**
@ -84,10 +84,19 @@ We removed usage of Cartographer/HttpDiscovery in our [fork of version 0.13.1.7]
Beside the Java serialisation issues there are [privacy concerns](http://bitcoin-development.narkive.com/hczWIAby/bitcoin-development-cartographer#post3) regarding Cartographer.
Here is a Github issue with background and open tasks regarding [Bloom Filters](https://github.com/bitsquare/bitsquare/issues/414)._ Note: use a fresh directory, this should not be done inside the bitsquare folder.
Btcd-cli4j is used for RPC communication to a local Bitcoin Core node.
TODO: remove if not used in production
$ cd ..
$ git clone -b FixBloomFilters https://github.com/bitsquare/bitcoinj.git
$ cd bitcoinj
$ mvn clean install -DskipTests -Dmaven.javadoc.skip=true
$ cd ..
$ git clone https://github.com/bitsquare/btcd-cli4j.git
$ cd btcd-cli4j
$ mvn clean install -DskipTests -Dmaven.javadoc.skip=true
Prepare Bitsquare build
-----------------

View file

@ -24,7 +24,6 @@ call "%JAVA_HOME%\bin\javapackager.exe" -deploy ^
-srcfiles "core/src/main/resources/bitsquare.policy" ^
-outfile Bitsquare ^
-Bruntime="%JAVA_HOME%\jre" ^
-BjvmProperties=-Djava.net.preferIPv4Stack=true ^
-BjvmOptions=-Djava.security.manager ^
-BjvmOptions=-Djava.security.debug=failure ^
-BjvmOptions=-Djava.security.policy=file:bitsquare.policy ^

View file

@ -72,13 +72,6 @@
<snapshots/>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</repository>
<!-- TODO host on https or include in project -->
<repository>
<id>mvn-nemp-ftp</id>
<name>Nemp's Maven Repository</name>
<url>http://mvn.neemre.com/</url>
</repository>
</repositories>
<dependencies>