Building FUSE Management

The way most developers get started contributing to a project.

Building

FUSE Management uses Maven as its build tool. Alternatively, you can use your IDE directly or download a distribution or JAR.

Prequisites

Required:

Maven options

To build FUSE Management maven has to be configured to use more memory

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

Build order

Since the FUSE Management consists of a number of sub-projects, you should run your Maven builds in the following order:

  1. code-style
  2. mgmt-parent
  3. managment
  4. camel-mgmt or smx-mgmt

A normal build

mvn clean install

Doing a Quick Build

The following avoids running all the unit test cases, we just skip the test running phase and not the building part

mvn -Dno_integration_tests=true -Dtest=false clean install

Using an IDE

If you prefer to use an IDE then you can auto-generate the IDE’s project files using maven plugins. e.g.

mvn eclipse:eclipse

or

mvn idea:idea

Importing into Eclipse

If you have not already done so, you will need to make Eclipse aware of the Maven repository so that it can build everything. In the preferences, go to Java > Build Path > Classpath and define a new Classpath Variable named M2_REPO that points to your local Maven repository (~/.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/ 

You can cofigure Eclipse to use the same Checkstyle and PMD rules as the Maven build by following these instructions

See Also