You must have the following in order to build a Fuse ESB product from its source distribution:
An active connection to the Internet.
The build system uses the Maven build engine, which connects to one or more Maven repositories on the Internet to download JAR files that are determined to be dependencies of the current build.
You need the Java Development Kit (JDK), version 6 Update 18 or later.
You can download the JDK from http://www.oracle.com/technetwork/java/javase/downloads/index.html.
Once you have installed the JDK you must:
Set the
JAVA_HOME
environment variable to point to the top-level directory containing your JDK.Add the JDK's
bin
directory to thePATH
.
![]() | Tip |
---|---|
On Windows, the Oracle JDK installs by default into
|
Apache Maven is a popular build management tool. ESB source builds require 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 containing 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 make all settings for the required programs with a script like the following examples. Adjust the paths in these examples to reflect your actual installed locations of Ant, Maven, and the JDK.
Example 3.1. Windows Environment Script
set JAVA_HOME=C:\Progra~1\Java\jdk1.6.0_18 set ANT_HOME=C:\Ant set M2_HOME=C:\Maven set PATH=%JAVA_HOME%\bin;%PATH% set PATH=%ANT_HOME%\bin;%PATH% set PATH=%M2_HOME%\bin;%PATH% set MAVEN_OPTS=-Xmx512M
Example 3.2. UNIX and Linux Environment Script
export JAVA_HOME=/usr/lib/jvm/java-1.6.0-oracle export ANT_HOME=/opt/ant export M2_HOME=/opt/maven export PATH=$JAVA_HOME/bin:$PATH export PATH=$ANT_HOME/bin:$PATH export PATH=$M2_HOME/bin:$PATH export MAVEN_OPTS=-Xmx512M