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.
- In the Preferences, go to Java > Build Path > Classpath.
- Define a new Classpath Variable named
M2_REPOthat points to your local Maven repository. For example,~/.m2/repositoryon UNIX andc:\Documents and Settings\$username\.m2\repositoryon Windows.
You can also get Maven to do this for you:
mvn eclipse:add-maven-repo -Declipse.workspace=/path/to/the/workspace/