首页 > 代码库 > Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (dist) on project hadoop-kms: An Ant BuildException has occured
Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (dist) on project hadoop-kms: An Ant BuildException has occured
编译cdh版hadoop2.5.0出现的问题
系统: CentOs66 64位
JDK:1.7
Maven: 3.0.5
Protobuf: libprotoc 2.5.0
编译命令: mvn package -DskipTests -Pdist,native
**************************************************************************************** [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] Apache Hadoop Main ................................ SUCCESS [8.893s] [INFO] Apache Hadoop Project POM ......................... SUCCESS [4.782s] [INFO] Apache Hadoop Annotations ......................... SUCCESS [9.500s] [INFO] Apache Hadoop Assemblies .......................... SUCCESS [2.145s] [INFO] Apache Hadoop Project Dist POM .................... FAILURE [4.141s] [INFO] Apache Hadoop Maven Plugins ....................... SKIPPED [INFO] Apache Hadoop Auth ................................ SKIPPED [INFO] Apache Hadoop Auth Examples ....................... SKIPPED [INFO] Apache Hadoop Common .............................. SKIPPED [INFO] Apache Hadoop NFS ................................. SKIPPED [INFO] Apache Hadoop Common Project ...................... SKIPPED [INFO] Apache Hadoop HDFS ................................ SKIPPED [INFO] Apache Hadoop HttpFS .............................. SKIPPED [INFO] Apache Hadoop HDFS BookKeeper Journal ............. SKIPPED [INFO] Apache Hadoop HDFS-NFS ............................ SKIPPED [INFO] Apache Hadoop HDFS Project ........................ SKIPPED [INFO] hadoop-yarn ....................................... SKIPPED [INFO] hadoop-yarn-api ................................... SKIPPED [INFO] hadoop-yarn-common ................................ SKIPPED [INFO] hadoop-yarn-server ................................ SKIPPED [INFO] hadoop-yarn-server-common ......................... SKIPPED [INFO] hadoop-yarn-server-nodemanager .................... SKIPPED [INFO] hadoop-yarn-server-web-proxy ...................... SKIPPED [INFO] hadoop-yarn-server-resourcemanager ................ SKIPPED [INFO] hadoop-yarn-server-tests .......................... SKIPPED [INFO] hadoop-yarn-client ................................ SKIPPED [INFO] hadoop-yarn-applications .......................... SKIPPED [INFO] hadoop-yarn-applications-distributedshell ......... SKIPPED [INFO] hadoop-mapreduce-client ........................... SKIPPED [INFO] hadoop-mapreduce-client-core ...................... SKIPPED [INFO] hadoop-yarn-applications-unmanaged-am-launcher .... SKIPPED [INFO] hadoop-yarn-site .................................. SKIPPED [INFO] hadoop-yarn-project ............................... SKIPPED [INFO] hadoop-mapreduce-client-common .................... SKIPPED [INFO] hadoop-mapreduce-client-shuffle ................... SKIPPED [INFO] hadoop-mapreduce-client-app ....................... SKIPPED [INFO] hadoop-mapreduce-client-hs ........................ SKIPPED [INFO] hadoop-mapreduce-client-jobclient ................. SKIPPED [INFO] hadoop-mapreduce-client-hs-plugins ................ SKIPPED [INFO] Apache Hadoop MapReduce Examples .................. SKIPPED [INFO] hadoop-mapreduce .................................. SKIPPED [INFO] Apache Hadoop MapReduce Streaming ................. SKIPPED [INFO] Apache Hadoop Distributed Copy .................... SKIPPED [INFO] Apache Hadoop Archives ............................ SKIPPED [INFO] Apache Hadoop Rumen ............................... SKIPPED [INFO] Apache Hadoop Gridmix ............................. SKIPPED [INFO] Apache Hadoop Data Join ........................... SKIPPED [INFO] Apache Hadoop Extras .............................. SKIPPED [INFO] Apache Hadoop Pipes ............................... SKIPPED [INFO] Apache Hadoop Tools Dist .......................... SKIPPED [INFO] Apache Hadoop Tools ............................... SKIPPED [INFO] Apache Hadoop Distribution ........................ SKIPPED [INFO] Apache Hadoop Client .............................. SKIPPED [INFO] Apache Hadoop Mini-Cluster ........................ SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 32.981s [INFO] Finished at: Sat Nov 12 10:11:28 CST 2016 [INFO] Final Memory: 32M/190M [INFO] ------------------------------------------------------------------------
编译失败
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (dist) on project hadoop-kms: An Ant BuildException has occured: Can‘t get http://archive.apache.org/dist/tomcat/tomcat-6/v6.0.43/bin/apache-tomcat-6.0.43.tar.gz to /home/liuwl/opt/datas/hadoop-2.5.0-cdh5.3.6/hadoop-common-project/hadoop-kms/downloads/apache-tomcat-6.0.43.tar.gz [ERROR] around Ant part ...<get dest="downloads/apache-tomcat-6.0.43.tar.gz" skipexisting="true" verbose="true" src="http://archive.apache.org/dist/tomcat/tomcat-6/v6.0.43/bin/apache-tomcat-6.0.43.tar.gz"/>... @ 5:182 in /home/liuwl/opt/datas/hadoop-2.5.0-cdh5.3.6/hadoop-common-project/hadoop-kms/target/antrun/build-main.xml
解决办法
[liuwl@hadoop09-linux-01 /]$ which mvn /opt/modules/apache-maven-3.0.5/bin/mvn [liuwl@hadoop09-linux-01 conf]$ vi settings.xml # 修改Maven默认的镜像下载地址,重新解压源码包编译 =========================================================================================== <mirrors> <mirror> <id>alimaven</id> <name>aliyun maven</name> <url>http://maven.aliyun.com/nexus/content/groups/public/</url> <mirrorOf>central</mirrorOf> </mirror> </mirrors>
结果
[INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] Apache Hadoop Main ................................ SUCCESS [8.265s] [INFO] Apache Hadoop Project POM ......................... SUCCESS [4.210s] [INFO] Apache Hadoop Annotations ......................... SUCCESS [15.404s] [INFO] Apache Hadoop Assemblies .......................... SUCCESS [2.214s] [INFO] Apache Hadoop Project Dist POM .................... SUCCESS [6.550s] [INFO] Apache Hadoop Maven Plugins ....................... SUCCESS [15.752s] [INFO] Apache Hadoop MiniKDC ............................. SUCCESS [9.598s] [INFO] Apache Hadoop Auth ................................ SUCCESS [11.524s] [INFO] Apache Hadoop Auth Examples ....................... SUCCESS [7.462s] [INFO] Apache Hadoop Common .............................. SUCCESS [3:09.844s] [INFO] Apache Hadoop NFS ................................. SUCCESS [20.267s] [INFO] Apache Hadoop KMS ................................. SUCCESS [3:20.595s] [INFO] Apache Hadoop Common Project ...................... SUCCESS [0.054s] [INFO] Apache Hadoop HDFS ................................ SUCCESS [5:41.125s] [INFO] Apache Hadoop HttpFS .............................. SUCCESS [37.255s] [INFO] Apache Hadoop HDFS BookKeeper Journal ............. SUCCESS [15.759s] [INFO] Apache Hadoop HDFS-NFS ............................ SUCCESS [7.255s] [INFO] Apache Hadoop HDFS Project ........................ SUCCESS [0.053s] [INFO] hadoop-yarn ....................................... SUCCESS [0.086s] [INFO] hadoop-yarn-api ................................... SUCCESS [1:29.695s] [INFO] hadoop-yarn-common ................................ SUCCESS [46.448s] [INFO] hadoop-yarn-server ................................ SUCCESS [0.097s] [INFO] hadoop-yarn-server-common ......................... SUCCESS [21.099s] [INFO] hadoop-yarn-server-nodemanager .................... SUCCESS [34.751s] [INFO] hadoop-yarn-server-web-proxy ...................... SUCCESS [6.165s] [INFO] hadoop-yarn-server-applicationhistoryservice ...... SUCCESS [11.525s] [INFO] hadoop-yarn-server-resourcemanager ................ SUCCESS [32.950s] [INFO] hadoop-yarn-server-tests .......................... SUCCESS [1.377s] [INFO] hadoop-yarn-client ................................ SUCCESS [11.163s] [INFO] hadoop-yarn-applications .......................... SUCCESS [0.209s] [INFO] hadoop-yarn-applications-distributedshell ......... SUCCESS [5.828s] [INFO] hadoop-yarn-applications-unmanaged-am-launcher .... SUCCESS [3.266s] [INFO] hadoop-yarn-site .................................. SUCCESS [0.104s] [INFO] hadoop-yarn-project ............................... SUCCESS [5.477s] [INFO] hadoop-mapreduce-client ........................... SUCCESS [0.213s] [INFO] hadoop-mapreduce-client-core ...................... SUCCESS [38.372s] [INFO] hadoop-mapreduce-client-common .................... SUCCESS [31.908s] [INFO] hadoop-mapreduce-client-shuffle ................... SUCCESS [7.782s] [INFO] hadoop-mapreduce-client-app ....................... SUCCESS [20.626s] [INFO] hadoop-mapreduce-client-hs ........................ SUCCESS [12.265s] [INFO] hadoop-mapreduce-client-jobclient ................. SUCCESS [9.955s] [INFO] hadoop-mapreduce-client-hs-plugins ................ SUCCESS [4.040s] [INFO] hadoop-mapreduce-client-nativetask ................ SUCCESS [1:50.989s] [INFO] Apache Hadoop MapReduce Examples .................. SUCCESS [11.866s] [INFO] hadoop-mapreduce .................................. SUCCESS [5.490s] [INFO] Apache Hadoop MapReduce Streaming ................. SUCCESS [8.804s] [INFO] Apache Hadoop Distributed Copy .................... SUCCESS [17.052s] [INFO] Apache Hadoop Archives ............................ SUCCESS [5.487s] [INFO] Apache Hadoop Rumen ............................... SUCCESS [12.485s] [INFO] Apache Hadoop Gridmix ............................. SUCCESS [8.274s] [INFO] Apache Hadoop Data Join ........................... SUCCESS [5.849s] [INFO] Apache Hadoop Extras .............................. SUCCESS [5.514s] [INFO] Apache Hadoop Pipes ............................... SUCCESS [10.008s] [INFO] Apache Hadoop OpenStack support ................... SUCCESS [11.260s] [INFO] Apache Hadoop Amazon Web Services support ......... SUCCESS [22.069s] [INFO] Apache Hadoop Azure support ....................... SUCCESS [9.426s] [INFO] Apache Hadoop Client .............................. SUCCESS [9.233s] [INFO] Apache Hadoop Mini-Cluster ........................ SUCCESS [1.103s] [INFO] Apache Hadoop Scheduler Load Simulator ............ SUCCESS [9.421s] [INFO] Apache Hadoop Tools Dist .......................... SUCCESS [10.727s] [INFO] Apache Hadoop Tools ............................... SUCCESS [1.466s] [INFO] Apache Hadoop Distribution ........................ SUCCESS [1:00.845s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 27:12.777s [INFO] Finished at: Sat Nov 12 14:31:34 CST 2016 [INFO] Final Memory: 122M/361M [INFO] ------------------------------------------------------------------------
Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (dist) on project hadoop-kms: An Ant BuildException has occured
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。