TheBlueMatt / RelayNode

A block-compressing fast relay server/client
http://bitcoinrelaynetwork.org
MIT License
84 stars 49 forks source link

trying to build #1

Closed tamasblummer closed 10 years ago

tamasblummer commented 10 years ago

[ERROR] Failed to execute goal on project RelayNode: Could not resolve dependencies for project RelayNode:RelayNode:jar:1.0-SNAPSHOT: Could not find artifact com.google:bitcoinj:jar:0.12-SNAPSHOT_nodelay in central (https://repo.maven.apache.org/maven2) -> [Help 1]

tamasblummer commented 10 years ago

Please add repository to be used for bitcoinj to pom.xml

TheBlueMatt commented 10 years ago

You have to build a custom tree of bitcoinj (https://github.com/TheBlueMatt/bitcoinj/tree/nodelay) for it to build by default (specifically, that tree sets TCP_NODELAY and TCP TOS bits on all connections). You can use bitcoinj master too, if you prefer, by just building master and setting the pom to 0.12-SNAPSHOT.

TheBlueMatt commented 10 years ago

ie you can just checkout that branch, run mvn install, and then RelayNode will build.

tamasblummer commented 10 years ago

you use java 7 features but not defining compiler plugin with at least 1.7 version, eg.: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project RelayNode: Compilation failure: Compilation failure: [ERROR] /Users/tamas/Documents/workspace/RelayNode/src/main/java/com/mattcorallo/relaynode/RelayConnection.java:[27,93] diamond operator is not supported in -source 1.5

you use jetbrains annotations without adding to dependencies, e.g.: [ERROR] /Users/tamas/Documents/workspace/RelayNode/src/main/java/com/mattcorallo/relaynode/RelayConnection.java:[7,33] package org.jetbrains.annotations does not exist

TheBlueMatt commented 10 years ago

Yea, the maven pom in here is really just to tell IntelliJ where to look for a few dependencies, its certainly not used for actual building...The dep on jetbrains annotations should probably be replaced, but patches welcome.

TheBlueMatt commented 10 years ago

The pom is now set st. build will succeed, but it isnt set up to build a jar or anything fancy, just get the class files built.