使用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下的文件),解压便可。