首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >OpenDaylight netconf构建问题

OpenDaylight netconf构建问题
EN

Stack Overflow用户
提问于 2018-06-13 07:54:42
回答 1查看 196关注 0票数 0

我尝试按照ODL维基的“入门”部分中的说明构建netconf模块。

我发现了可能的答案:

  1. 使用正确的“setings.xml”。
  2. 尝试使用不同的maven命令,如:mvn、-Pq干净安装;mvn安装-DskipTests

不幸的是,所有这些变体都不适合我。

因此,我安装了所有必要的特性,比如maven,获得了正确的‘So ings.xml’,从git中提取了netconf项目,并尝试使用mvn干净安装构建它。在那之后我犯了很多错误:

代码语言:javascript
复制
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for org.opendaylight.netconf:netconf-auth:1.4.2-SNAPSHOT: Failure to find org.opendaylight.odlparent:odlparent-bundle:pom:3.1.0 in https://nexus.opendaylight.org/content/repositories/public/ was cached in the local repository, resolution will not be reattempted until the update interval of opendaylight-mirror has elapsed or updates are forced and 'parent.relativePath' points at no local POM @ line 11, column 13

..。

代码语言:javascript
复制
[ERROR]   The project org.opendaylight.netconf:netconf-auth:1.4.2-SNAPSHOT (/home/ssavchen/netconf/netconf/netconf-auth/pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM for org.opendaylight.netconf:netconf-auth:1.4.2-SNAPSHOT: Failure to find org.opendaylight.odlparent:odlparent-bundle:pom:3.1.0 in https://nexus.opendaylight.org/content/repositories/public/ was cached in the local repository, resolution will not be reattempted until the update interval of opendaylight-mirror has elapsed or updates are forced and 'parent.relativePath' points at no local POM @ line 11, column 13 -> [Help 2]
org.apache.maven.model.resolution.UnresolvableModelException: Failure to find org.opendaylight.odlparent:odlparent-bundle:pom:3.1.0 in https://nexus.opendaylight.org/content/repositories/public/ was cached in the local repository, resolution will not be reattempted until the update interval of opendaylight-mirror has elapsed or updates are forced
    ...
Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Failure to find org.opendaylight.odlparent:odlparent-bundle:pom:3.1.0 in https://nexus.opendaylight.org/content/repositories/public/ was cached in the local repository, resolution will not be reattempted until the update interval of opendaylight-mirror has elapsed or updates are forced

我知道问题出在“奇怪的包”里,但我不知道该怎么处理。有人有什么想法吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-06-14 06:47:45

您的Maven存储库仍然“记得”它未能下载构建所需的OpenDaylight工件。要解决这个问题,可以强制使用-U进行更新。

代码语言:javascript
复制
mvn -U clean install

构建时还需要完整的JDK,而不是JRE,所以安装如下:

代码语言:javascript
复制
sudo apt install openjdk-8-jdk
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/50831881

复制
相关文章

相似问题

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