Ambari部署,编译,打包过程中遇到的问题

1.错误: [ERROR] Failed to execute goal com.github.goldin:copy-maven-plugin:0.2.5:copy (create-archive) on project ambari-agent: Processing  [Target path(s) [/home/bdms/workspacebaribari-agent/targetb], directory [http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.15/repos/centos6/ruby-1.8.7-p370.tar.gz], dependencies []] failed with [java.net.ConnectException]: Connection refused -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn  -rf :ambari-agent 


解决办法:修改ambari-agent下的pom.xml文件,改为如下的本地目录,前提这三个文件以下载到本地
 /home/bdms/Downloads/facter-1.6.10.tar.gz
  /home/bdms/Downloads/facter-1.6.10.tar.gz
/home/bdms/Downloads/facter-1.6.10.tar.gz

2.错误: Failed to execute goal org.apache.rat:apache-rat-plugin:0.10:check (default) on project ambari-client: Too many files with unapproved license: 1 See RAT report in: /home/bdms/workspace/ambari/ambari-client/target/rat. txt -> [Help 1]

解决办法:
方法一:删除ambari-client下的.pydevproject文件
方法二:在ambari-client目录下修改pom.xml文件
 
        org.apache.rat
        apache-rat-plugin
        
          
            src/examples/*
            src/test/python/dummy*.txt
            src/main/pythonbari_client/imports.txt
            src/main/puppet/modules/stdlib/**
            **/*.erb
            **/*.json
            .pydevproject  (增加.pydevproject文件的过滤操作)
          

        

 


你可能感兴趣的:(Hadoop,maven,eclipse)