You must have the following in order to build a FUSE 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 must have installed a Java Development Kit (JDK), version 1.5.0_11 or later. You can download the JDK from http://java.sun.com/javase/downloads/previous.jsp.
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 the
PATH.
On Windows, the Sun JDK installs by default into C:\Program Files\Java\jdk1.5.0_. When
specifying this path in your versionJAVA_HOME environment variable, you can use
Progra~1 instead of Program Files, as shown
in the example scripts below.
Apache Maven is a popular build management tool. FUSE source builds require Apache Maven 2.0.9 or later; 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 the PATH.
Set the MAVEN_OPTS environment variable to -Xmx512M
to give the Maven build more memory in which to run.
Building FUSE source and sample code also requires Apache Ant. The source build requires Apache Ant 1.6.5 or later; you can download it from http://ant.apache.org/bindownload.cgi.
After unzipping the Apache Ant distribution, you must:
Set the ANT_HOME environment variable to the top-level directory where
you unzipped Apache Ant.
Add Apache Ant's bin directory to your PATH.
![]() | Tip |
|---|---|
The archive file containing Maven unpacks into a directory named with the Maven version
number, such as |
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.5.0_11 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.5.0-sun 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