1.错误: [ERROR] Failed to execute goal com.github.goldin:copy-maven-plugin:0.2.5:copy (create-archive) on project ambari-agent: Processing <resource> [Target path(s) [/home/bdms/workspace
bari
bari-agent/target
b], 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 <goals> -rf :ambari-agent
解决办法:修改ambari-agent下的pom.xml文件,改为如下的本地目录,前提这三个文件以下载到本地
<facter.tar>/home/bdms/Downloads/facter-1.6.10.tar.gz</facter.tar>
<puppet.tar>/home/bdms/Downloads/facter-1.6.10.tar.gz</puppet.tar>
<ruby.tar>/home/bdms/Downloads/facter-1.6.10.tar.gz</ruby.tar>
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文件