首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Maven build从中央存储库错误下载

Maven build从中央存储库错误下载
EN

Stack Overflow用户
提问于 2017-03-23 23:54:14
回答 1查看 213关注 0票数 1

我正在尝试在本地开发机器上构建https://github.com/opendaylight/mdsal.git

构建在以下位置失败:

代码语言:javascript
复制
[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 @

原因是,正在尝试从https://repo.maven.apache.org/maven2错误地下载karaf maven-plugin:jar:4.0.8-odl。

它实际上存在于https://nexus.opendaylight.org/content/repositories/public/中。我已经注意从推荐的url:https://github.com/opendaylight/odlparent/blob/master/settings.xml中使用正确的settings.xml。我将其放置为~/.m2/settings.xml

EN

回答 1

Stack Overflow用户

发布于 2017-03-24 23:32:16

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

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/42981022

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档