Apache ActiveMQ ™ -- Building

Developers > Building

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.
  • Get the latest Source
  • JDK (1.6 for version <= 5.10, 1.7 for version > 5.10)

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.

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

mvn -Dtest=false -DfailIfNoTests=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 (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

maven -Dmaven.test.skip.exec=true

Using an IDE

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

maven eclipse

or

maven idea

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.

results matching ""

    No results matching ""