我尝试按照ODL维基的“入门”部分中的说明构建netconf模块。
我发现了可能的答案:
不幸的是,所有这些变体都不适合我。
因此,我安装了所有必要的特性,比如maven,获得了正确的‘So ings.xml’,从git中提取了netconf项目,并尝试使用mvn干净安装构建它。在那之后我犯了很多错误:
[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..。
[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我知道问题出在“奇怪的包”里,但我不知道该怎么处理。有人有什么想法吗?
发布于 2018-06-14 06:47:45
您的Maven存储库仍然“记得”它未能下载构建所需的OpenDaylight工件。要解决这个问题,可以强制使用-U进行更新。
mvn -U clean install构建时还需要完整的JDK,而不是JRE,所以安装如下:
sudo apt install openjdk-8-jdkhttps://stackoverflow.com/questions/50831881
复制相似问题