First, prepare
The Eclipse Luna version itself already supports Git and maven.
Apache-maven installed, I am using 3.1.1.
Have a GitHub account.
second, import the source code
1. Start eclipse, "File"-"Import", select "Git"-"Project from Git", click "Next" to continue.
2. Click the Clone URI, Click "Next" to continue.
3, enter Uri:https://github.com/apache/activemq.git,github user name and password, dot "Next" continues. If your company needs to configure a proxy on the Internet, you need to set up an eclipse proxy. dot "Next" continues.
4, select the version of the code you want to download, and click "Next" to continue.
5, select the local path where the code is saved, point to "Next" waits for the download code to end. For example, the code goes into eclipse.
third, compiling, packaging
Compile and package using the following command
Package, skip test phase MVN package-dskiptests//package, temporarily skip test code compilation MVN Package-dmaven.test.skip=true
Locate the activemq-5.11 project below Pom.xml, right--run as-maven bulid, enter goals or package-dskiptests in-dmaven.test.skip=true. Here we skipped the test for the time being because the first compilation of the download dependency package took too long.
After a long wait, you can see your own packaged apache-activemq in the Assembly\target directory.
Import ACTIVEMQ Source to eclipse