使用git下載代碼:linux
git clone https://git-wip-us.apache.org/repos/asf/activemq.gitgit
經過命令行的方式構建apache
mvn -Dtest=false -DfailIfNoTests=false clean installwindows
中間可能會報如下一些jar包沒法從中央倉庫下載的錯誤,手動從如下連接下載jar包eclipse
http://www.mvnrepository.com/artifact/xalan/xalan/2.7.2maven
http://mvnrepository.com/artifact/org.apache.derby/derby/10.11.1.1命令行
而後手工把這些jar包安裝到本地maven倉庫便可ip
mvn install:install-file -DgroupId=xalan -DartifactId=xalan -Dversion=2.7.2 -Dpackaging=jar -Dfile=xalan-2.7.2.jarget
mvn install:install-file -DgroupId=org.apache.derby -DartifactId=derby -Dversion=10.11.1.1 -Dpackaging=jar -Dfile=derby-10.11.1.1.jarit
經過eclipse構建
使用命令行生成eclipse工程文件
mvn eclipse:eclipse
而後從eclipse導入工程
構建完成後,進入assembly目錄下的target目錄,其中的兩個壓縮文件就是了(以tar結尾的是linux下的文件,以zip結尾的是windows下的文件),解壓便可。