hadoop2.5编译时报错Failed to read artifact descriptor for org.apache.felix:maven-bundle-plugin🏺2.4.0

开心快乐每一天 发布于 2016/06/19 17:02
阅读 2K+
收藏 0

执行命令mvn package -Pdist,native,docs -DskipTests -Dtar,对hadoop2.5编译时,报错如下:

root@node1:/usr/local/hadoop-2.5.2-src# mvn package -Pdist,native,docs -DskipTests -Dtar
[INFO] Scanning for projects...
Downloading: https://repo.maven.apache.org/maven2/org/apache/felix/maven-bundle-plugin/2.4.0/maven-bundle-plugin-2.4.0.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-javadoc-plugin is missing. @ line 388, column 19
[ERROR] Unresolveable build extension: Plugin org.apache.felix:maven-bundle-plugin:2.4.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.felix:maven-bundle-plugin🏺2.4.0 @ 
 @ 
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   
[ERROR]   The project org.apache.hadoop:hadoop-main:2.5.2 (/usr/local/hadoop-2.5.2-src/pom.xml) has 1 error
[ERROR]     Unresolveable build extension: Plugin org.apache.felix:maven-bundle-plugin:2.4.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.felix:maven-bundle-plugin🏺2.4.0: Could not transfer artifact org.apache.felix:maven-bundle-plugin:pom:2.4.0 from/to central (https://repo.maven.apache.org/maven2): repo.maven.apache.org: Name or service not known: Unknown host repo.maven.apache.org: Name or service not known -> [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



请大神们帮忙看下

加载中
0
LarrySu
LarrySu
在maven库中找到maven-bundle-plugin-2.4.0.jar所在目录,然后删除目录后重新编译试试.
开心快乐每一天
开心快乐每一天
谢谢。因为设置了固定ip后,没注意到不能上网了。现在改好了。
返回顶部
顶部