Building

Prerequisites

Hearsay is %100 Java and is built using the Apache Maven build system.

Prerequisites include:

  • Java 1.7+ (ensure JAVA_HOME is set in your environment)
  • Apache Maven 3

Maven Settings

You will need a ~/.m2/settings.xml with the correct artifact repository enabled. Here is an example:

<settings>
  <profiles>
    <profile>
      <id>dev</id>
      <repositories>
	<repository>
	  <id>renci.repository</id>
	  <name>renci.repository</name>
	  <url>http://archiva.renci.org:8080/repository/internal</url>
	  <releases>
	    <enabled>true</enabled>
	  </releases>
	  <snapshots>
	    <enabled>false</enabled>
	  </snapshots>
	</repository>
      </repositories>
    </profile>
  </profiles>
  <activeProfiles>
    <activeProfile>dev</activeProfile>
  </activeProfiles>
</settings>

Commands

mvn clean install "clean" removes the target directory & "install" compiles the code into the target directory
mvn eclipse:eclipse creates ".project" & ".classpath" files

Misc.

Setting the following helps ensure a successfull build:

export JAVA_OPTS="-XX:MaxPermSize=768m -XX:-UseSplitVerifier -Xmx4g"
export MAVEN_OPTS="$JAVA_OPTS"
	

Note that "-XX:-UseSplitVerifier" is not needed with JDK 8.