版本
centos6
jdk1.7
findbugs-3.0.1
maven-3.0.5
protobuf-2.6.0
安装
yum install lzo-devel zlib-devel gcc gcc-c++ openssl-devel ncurses-devel autoconf automake libtool cmake kernel-devel glibc-headers svn git -y
yum install ant -y
findbugs
tar -zxvf findbugs-3.0.1.tar.gz
vim /etc/profile.d/findbugs.sh
export FINDBUGS_HOME=/opt/findbugs-3.0.1
export PATH=$PATH:$FINDBUGS_HOME/bin
source /etc/profile.d/findbugs.sh
protobuf
tar -zxvf protobuf-2.5.0.tar.gz
cd protobuf-2.5.0
./configure
make && make install
maven
tar -zxvf apache-maven-3.0.5-bin.tar.gz
vim /etc/profile.d/maven.sh
MAVEN_HOME=/opt/maven3.0
export PATH=$PATH:$MAVEN_HOME/bin
source /etc/profile.d/maven.sh
修改maven中conf的settings.xml的仓库地址
<localRepository>/opt/maven_repo</localRepository>
下载地址https://pan.baidu.com/s/1fNo1jW1QgPsadwA8cF4G3Q
在需要编译的目录下执行mvn clean install
-Dmaven.test.skip=true不进行检测
-DskipTests不进行测试
如果想对局部进行编译且不测试可执行:
mvn package -pl hadoop-mapreduce-examples -am -DskipTests