/
Building

Building

Prerequisites

It is required to have installed Maven 3.0 or higher on the machine that will be attempting to build the latest release.

In addition, access to a Maven repository with the latest project artifacts and dependencies is necessary in order for a successful build. The following sample settings.xml (the default settings file) can be used to access the public repositories with the required artifacts. For more help on how to use the settings.xml file, see the Maven settings reference page.

Sample settings.xml file
<settings>
 <!-- If proxy is needed
 <proxies>
   <proxy>
   </proxy>
 </proxies>
 -->
</settings>

Handy Tip on Encrypting Passwords

See this Maven guide on how to encrypt the passwords in your settings.xml.

Procedures

Run the Build

  1. After the settings.xml has been properly configured, run the build from the root-level project in a command line prompt or terminal using the following command

    mvn clean install

    At the end of the build, a BUILD SUCCESS will be displayed.

 

Build times may vary based on network speed and machine specifications.

In certain circumstances the build may fail due to a 'java.lang.OutOfMemory: Java heap space' error. This error is due to the large number of sub-modules in the DDF build causing the heap space to run out in the main maven JVM. To fix this issue, set the system variable MAVEN_OPTS with the value -Xmx512m -XX:MaxPermSize=128m before running the build.

Example on Linux system with the bash shell: export MAVEN_OPTS='-Xmx512m -XX:MaxPermSize=128m'