simulator - Opendaylight netconf-testtool 构建失败
问题描述
嗨,我尝试克隆存储库并构建 opendaylight wiki 页面中提到的源代码。但是构建失败了。
链接:https ://wiki.opendaylight.org/view/OpenDaylight_Controller:Netconf:Testtool#Building_testtool
以下是我遵循的步骤:
- 从git查看最新的 netconf 存储库
- 进入 netconf/netconf/tools/netconf-testtool/ 文件夹
- 使用 mvn clean install 命令构建 testtool
构建失败并出现以下错误跟踪:
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for org.opendaylight.netconf:netconf-parent:1.5.0-SNAPSHOT: Could not find artifact org.opendaylight.mdsal:binding-parent:pom:0.13.0-SNAPSHOT and 'parent.relativePath' points at no local POM @ org.opendaylight.netconf:netconf-parent:1.5.0-SNAPSHOT, /home/balakrishnan/netconf_simulator/netconf/netconf/netconf-parent/pom.xml, line 11, column 11
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project org.opendaylight.netconf:netconf-testtool:1.5.0-SNAPSHOT (/home/balakrishnan/netconf_simulator/netconf/netconf/tools/netconf-testtool/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for org.opendaylight.netconf:netconf-parent:1.5.0-SNAPSHOT: Could not find artifact org.opendaylight.mdsal:binding-parent:pom:0.13.0-SNAPSHOT and 'parent.relativePath' points at no local POM @ org.opendaylight.netconf:netconf-parent:1.5.0-SNAPSHOT, /home/balakrishnan/netconf_simulator/netconf/netconf/netconf-parent/pom.xml, line 11, column 11 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
解决方案
构建需要您的 Maven 设置不知道的工件。您需要编辑您的settings.xml
文件;如果您在 Unix 风格的环境中运行:
cp -n ~/.m2/settings.xml{,.orig}
wget -q -O - https://raw.githubusercontent.com/opendaylight/odlparent/master/settings.xml > ~/.m2/settings.xml
这将配置 Maven 从OpenDaylight Nexus 存储库下载 OpenDaylight 工件;然后,您将能够netconf-testtool
直接构建。
推荐阅读
- javascript - 单击按钮时进行过滤
- mysql - 我如何更新父行(外键)
- jquery - 根据两个数据表列中的值突出显示重复结果
- node.js - 如何打印对邮递员或浏览器的控制台响应?
- javascript - 将 Mongodb 查询数据传递给 Pug 的更好方法
- python - 怎么了?初始化模块“pyperclip”没有属性“粘贴”(很可能是由于循环导入)
- pcap - 如何在合并到单个文件之前为众多 pcap 文件中的所有数据包添加注释
- azure - 当我的应用服务在 Azure 上收到错误 500 时向我发送电子邮件
- android - 在 Android Studio 中将图标添加到工具栏
- php - 当新用户未出现在 phpmyadmin 数据库中时,php 中的注册过程成功完成