当我使用Maven编译hadoop3.0.0beta1时发生错误“连接被拒绝”

时间:2018-09-25 08:45:27

标签: maven hadoop compiler-errors

我尝试在ubuntu16.04中编译hadoop3.0.0beta1,但是当我运行mvn install时,它提示:

[INFO] Scanning for projects...
Downloading from nexus-aliyun: http://maven.aliyun.com/nexus/content/groups/public/org/apache/felix/maven-bundle-plugin/2.5.0/maven-bundle-plugin-2.5.0.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Unresolveable build extension: Plugin org.apache.felix:maven-bundle-plugin:2.5.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.felix:maven-bundle-plugin:jar:2.5.0 @ 
 @ 
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   
[ERROR]   The project org.apache.hadoop:hadoop-maven-plugins:3.0.0-beta1 (/opt/new-hadoop/hadoop/hadoop-maven-plugins/pom.xml) has 1 error
[ERROR]     Unresolveable build extension: Plugin org.apache.felix:maven-bundle-plugin:2.5.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.felix:maven-bundle-plugin:jar:2.5.0: Could not transfer artifact org.apache.felix:maven-bundle-plugin:pom:2.5.0 from/to nexus-aliyun (http://maven.aliyun.com/nexus/content/groups/public): Connect to archiva-maven-storage-prod.oss-cn-beijing.aliyuncs.com:80 [archiva-maven-storage-prod.oss-cn-beijing.aliyuncs.com/49.7.22.49] failed: Connection refused (Connection refused) -> [Help 2]
[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/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/PluginManagerException

似乎我无法连接到Maven存储,但是我尝试ping此URL并提示:

PING tyjr-common-cn-beijing.aliyun.com (182.92.29.54) 56(84) bytes of data.
64 bytes from 182.92.29.54: icmp_seq=1 ttl=128 time=5.51 ms
64 bytes from 182.92.29.54: icmp_seq=2 ttl=128 time=5.92 ms
64 bytes from 182.92.29.54: icmp_seq=3 ttl=128 time=5.93 ms

所以我不知道为什么会发生。

我正在寻找您的帮助,再次感谢您!

0 个答案:

没有答案