Maven从中央仓库错误地下载

时间:2017-03-23 15:54:14

标签: maven maven-3 opendaylight

我正在尝试在本地开发机器上构建This is my debug window

构建失败:

[INFO] features4-mdsal .................................... SUCCESS [  1.315 s]
[INFO] features-mdsal-aggregator .......................... FAILURE [  0.164 s]
The reason being:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.6:site (generate-site) on project features-mdsal-aggregator: Execution generate-site of goal org.apache.maven.plugins:maven-site-plugin:3.6:site failed: Unable to read local module POM: Some problems were encountered while processing the POMs:
[ERROR] [ERROR] Unresolveable build extension: Plugin org.apache.karaf.tooling:karaf-maven-plugin:4.0.8-odl or one of its dependencies could not be resolved: Failure to find org.apache.karaf.tooling:karaf-maven-plugin:jar:4.0.8-odl in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced @

原因是,karaf-maven-plugin:jar:4.0.8-odl正试图从错误地下载 https://github.com/opendaylight/mdsal.git

它实际存在于https://repo.maven.apache.org/maven2中。我已经注意使用推荐网址中正确的settings.xml:     https://nexus.opendaylight.org/content/repositories/public/。     我把它放在〜/ .m2 / settings.xml

1 个答案:

答案 0 :(得分:1)

这实际上是Maven网站插件的一个问题;一旦Karaf 4.0.9发布,它将被修复。与此同时,您可以使用-Dmaven.site.skip=true在本地构建,以完全避免此问题。