Building FUSE Depot

The way most developers get started contributing to a project.

Prerequisites

Maven options

To build FUSE Depot you need to configure Maven to use more memory:

set MAVEN_OPTS=-Xmx512m -XX:MaxPermSize=128m

Doing a normal build

mvn install

Doing a quick build

Run the following to build without running all the unit tests:

mvn -Dtest=false  -DfailIfNoTests=false clean install

Using an IDE

If you prefer to use an IDE, you can auto-generate the IDE’s project files using Maven plugins. For example:

mvn eclipse:eclipse

or

mvn idea:idea

Importing into Eclipse

You need to make Eclipse aware of the Maven repository so that it can build everything.

  1. In the Preferences, go to Java > Build Path > Classpath.
  2. Define a new Classpath Variable named M2_REPO that points to your local Maven repository. For example, ~/.m2/repository on UNIX and c:\Documents and Settings\$username\.m2\repository on Windows.

You can also get Maven to do this for you:

mvn eclipse:add-maven-repo -Declipse.workspace=/path/to/the/workspace/ 

See also