$ mvn package -Pdist -DskipTests -Dtar
但是在运行过程中出现如下问题:
Building Hadoop cannot access org.mortbay.component.AbstractLifeCycle error or class file for org.mortbay.component.AbstractLifeCycle not found
解决办法:
https://issues.apache.org/jira/browse/HADOOP-10110
就是修改 hadoop-common-project/hadoop-auth/pom.xml 文件如下:
https://issues.apache.org/jira/secure/attachment/12614482/HADOOP-10110.patch