These programs are not required to work with Fuse Message Broker. However, they are useful for a variety of build tasks.
Apache Maven is a popular build management tool. To build the source distribution of Fuse ESB, you need Apache Maven 3; you can download Apache Maven from http://maven.apache.org/download.html.
Once you have installed Apache Maven, you must:
Set the
M2_HOME
environment variable to point to the top-level directory that contains your Maven installation.Add Maven's
bin
directory to thePATH
.Set the
MAVEN_OPTS
environment variable to-Xmx512M
to give the Maven build more memory in which to run.
You can create scripts like the one shown here to make all settings for the required programs. You must adjust the paths in these examples to reflect your actual installed locations of Ant, Maven, and the JDK.
Example 1.1. Windows Environment Script
set JAVA_HOME=C:\Progra~1\Java\jdk1.6.0_18 set M2_HOME=C:\maven set PATH=%JAVA_HOME%\bin;%PATH% set PATH=%M2_HOME%\bin;%PATH% set MAVEN_OPTS=-Xmx512M
Example 1.2. UNIX and Linux Environment Script
export JAVA_HOME=/usr/lib/jvm/java-1.6.0-oracle export M2_HOME=/opt/maven export PATH=$JAVA_HOME/bin:$PATH export PATH=$M2_HOME/bin:$PATH export MAVEN_OPTS=-Xmx512M