Building ActiveMQ from Source

ActiveMQ uses Maven as its build and management tool. If you don't fancy using Maven you can use your IDE directly or Download a distribution or JAR.

Prequisites

Required:

  • Download and install Maven.
    (Maven 2.0.9 or better is required).
  • Get the latest Source
  • JDK 1.4.x or greater for deployment and 1.5.x (Java 5) for compiling/building.

Using Maven 2 (ActiveMQ 4.1.x and Up)

ActiveMQ 4.1.x and up use Maven 2 to Build. We recommend you download and install Maven 2.0.4.

Icon

You should set the MAVEN_OPTS environment variable to -Xmx800m. There are portions of the ActiveMQ build that are very memory intensive. Increase the maven memory limit so that the build does not fail for you.

Doing a Quick Build

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.

or

Importing into Eclipse

Icon

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 (i.e., ~/.m2/repository on Unix and c:\Documents and Settings\<user>\.m2\repository on Windows).

Other Maven 2 Goals

For more details try the Examples or Benchmark Tests
Please refer to the plugin reference for more details on using them.

Using Maven 1 (ActiveMQ 4.0.x and Down)

ActiveMQ 4.0.x and down use Maven 1 to Build. We recommend you download and install Maven 1.0.2.

Doing a Quick Build

Using an IDE

If you prefer to use an IDE then you can autogenerate the IDE's project files using maven plugins. e.g.

or

etc.

Other Maven 1 Goals

For more details try the Examples or Benchmark Tests
Please refer to the plugin reference for more details on using them.

© 2004-2011 The Apache Software Foundation.
Apache ActiveMQ, ActiveMQ, Apache, the Apache feather logo, and the Apache ActiveMQ project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners.
Graphic Design By Hiram