Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Building ServiceMix From Source

ServiceMix uses Maven as its build tool. If you don't fancy using Maven you can use your IDE directly or Download a distribution or JAR.and management tool. We have tested the build with Maven 2.0.6 8 and it works fine.
Previous / later versions of Maven may vary - if you hit problems on other versions please talk to us on the Mailing Lists.
, but Maven 2.0.9 is known to cause some issues that prevent a successful build. Be sure to read the FAQ

Getting started

Code Block
mvn -Dmaven.test.skip=true -Pstep1 install
mvn -Dmaven.test.skip=true -Pstep2 install
Tip
titleUseful hintHints
  • It may happen, that building step1 fails with an error message regarding PMD or checkstyle. In this case you can add a 'nochecks' to the line so it looks like this:

mvn -Dmaven.test.skip=true -Pstep1,nochecks install

  • Also, if an out of memory error is encountered during compilation, set the MAVEN_OPTS environment variable to a larger amount of memory. Below is an example:

MAVEN_OPTS=-Xmx768m

Warning
titlePlease Note

There is an issue in building if you use the system property style of declaring the profiles (i.e., -Dprofile=step2) as the XFire Maven plugin thinks step2 is a profile name it should use. This is fixed in the ServiceMix trunk (3.3 or greater). To work around this issue, use the -Pstep2 style of declaring the profile as noted above.

...