Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (dist) on project hadoop-kms: An Ant BuildException has occured

时间:2021-09-12 00:06:08

编译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的更多相关文章

  1. maven install Failed to execute goal org&period;apache&period;maven&period;plugins&colon;maven-war-plugin&colon;2&period;1&period;1&colon;war &lpar;default-war&rpar; on project web&lowbar;nanchang

    maven打包成war时,报错:Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war (default- ...

  2. Failed to execute goal org&period;apache&period;maven&period;plugins&colon;maven-compiler-plugin&colon;3&period;1&colon;compile &lpar;default-compile&rpar; on project LogTest&colon; Compilation failure -&gt&semi; &lbrack;Help 1&rsqb;

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default ...

  3. &lbrack;ERROR&rsqb; Failed to execute goal org&period;apache&period;maven&period;plugins&colon;maven-install-plugin&colon;2&period;3&period;1&colon;

    security-sdk-1.0.jar已经存在于D:/secServerSDK-test/src/main/resources/lib下 报错如下: xxxxxx@xxxxxxxx /d/secSe ...

  4. &lbrack;ERROR&rsqb; Failed to execute goal org&period;apache&period;maven&period;plugins&colon;maven-archetype-plugin&colon;2&period;4&colon;create &lpar;default-cli&rpar; on project standalone-pom&colon; Unable to parse configuration of 3&colon; mojo org&period;apache&period;maven&period;plugins&colon;

    问题: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.4:create (defau ...

  5. &lbrack;ERROR&rsqb; Failed to execute goal org&period;apache&period;maven&period;plugins&colon;maven-jar-plugin&colon;2&period;3&period;1&colon;jar &lpar;default-jar&rpar; on

    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-jar-plugin:2.3.1:jar (default-jar) on ...

  6. maven install 报错Failed to execute goal org&period;apache&period;maven&period;plugins&colon;maven-compiler-plugin&colon;3&period;1&colon;compile &lpar;default-compile&rpar; on project&ast;&ast;&ast;&ast;&ast;

    [ERROR]Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-co ...

  7. Maven Failed to execute goal org&period;apache&period;maven&period;plugins&colon;maven-clean-plugin&colon;2&period;5&colon;clean Failed to delete access&lowbar;log

    I'm trying to run simple struts project using maven and tomcat. When I'm trying to exucute next goal ...

  8. 解决Failed to execute goal org&period;apache&period;maven&period;plugins

    1.Maven构建失败 Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin: 2.3 . 2 :compile  ...

  9. Failed to execute goal org&period;apache&period;maven&period;plugins&colon;maven-compiler-plugin&colon;3&period;1&colon;compile 解决办法

    Maven install失败 Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (d ...

随机推荐

  1. Linux SendMail服务启动慢总结

    在 CentOS release 6.6 上启动sendmail服务时发现服务启动过程非常慢,基本上要耗费3分多钟.有点纳闷:什么原因导致sendmail启动这么慢?搜索了这方面的一些资料,结合自己的 ...

  2. zookeeper选举原理

    zookeeper的领导者选举和原子广播   目录:     1.工作原理概述     2.Fast Leader选举算法(领导者选举)     3.Leader与Follower同步数据(原子广播) ...

  3. &lbrack;Educational Codeforces Round 16&rsqb;E&period; Generate a String

    [Educational Codeforces Round 16]E. Generate a String 试题描述 zscoder wants to generate an input file f ...

  4. svn merge部分的详细说明

    http://blog.sina.com.cn/s/blog_620eb3b20101hvz7.html 解决版本冲突-使用SVN主干与分支功能 1  前言 大多数产品开发存在这样一个生命周期:编码. ...

  5. SQL SERVER 2000 数据恢复(分离数据库&plus;附加数据库)

    一.分离数据库     SQL Server 2000允许分离数据库的数据和事务日志文件,然后将其重新附加到同一台或另一台服务器上.分离数据库将从SQL Server 删除数据库,所以当点击“分离数据 ...

  6. &lbrack;51nod1474&rsqb;宝藏图

    有n堆宝藏,每一堆宝藏有一个挖掘所需要的时间ti,有一个价值qi. 现在是做一个宝藏图.这个宝藏图是这样的,宝藏图的形状是一棵二叉树,二叉树刚好有k个叶子结点,从n堆宝藏中选k堆放到二叉树的叶子结点上 ...

  7. 开源介绍&&num;183&semi;新款简约、实用与大气的Hexo新主题:BMW

    这是一个简约.大气.实用的Hexo新主题:BMW

  8. URL组成部分详解

    URL组成部分详解 URL是Uniform Resource Locator的简写,统一资源定位符. 一个URL是由以下几部分组成的: scheme://host:port/path/?query-s ...

  9. express&period;js graphql express-graphql

    文档 创建应用 const l = console.log; var express = require("express"); var graphqlHTTP = require ...

  10. Heroku 云服务部署流程

    部署操作: heroic create bluefocus mkdir heroku && cd heroku --------------------- git init herok ...