OpenDaylight netconf 构建问题

OpenDaylight netconf build issue

我已尝试按照 ODL wiki 的 "Getting Started" 部分中的说明构建 netconf 模块。

我找到的可能答案:

  1. 使用正确'settings.xml'.
  2. 尝试使用不同的 Maven 命令,例如: mvn -Pq 全新安装; mvn install -DskipTests

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

所以,我安装了所有必要的功能,如 maven,得到了正确的 'settings.xml',从 git 中提取了 netconf 项目并尝试使用 mvn clean install[=31= 构建它]. 之后我得到了很多错误:

[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

我知道问题出在 'odlparent-bundle',但我不知道如何处理它。有人有什么想法吗?

您的 Maven 存储库仍然“记得”它未能下载构建所需的 OpenDaylight 工件。要解决此问题,您可以使用 -U:

强制更新
mvn -U clean install

您还需要完整的 JDK 而不是 JRE 来构建,所以安装它:

sudo apt install openjdk-8-jdk