admin管理员组

文章数量:1650766

问题描述:
在自己的开发环境引入了of-config相关feature,进行编译后,启动karaf
在karaf中执行feature:install odl-of-config-rest,报:
Error executing command: Can’t install feature odl-of-config-rest/0.0.0:
An error occurred while reading the manifest file.
如图:
这种一般是这个feature的某个依赖未成功下载在本地maven库中。
寻找方法:
找到在maven仓库下找到odl-of-config-rest的features.xml文件(一般在依赖的groupId下的features-…文件中),进行定位是哪一个features出错。
打开对应的features.xml文件,找到install的feature,这里发现odl-of-config-rest实际就是执行odl-of-config-southbound-rest
继续找到odl-of-config-southbound-rest
执行feature:install odl-of-config-southbound-all报错,继续执行其中的子项目,发现错误出在feature:install odl-netconf-connector-all,则继续找odl-netconf-connector-all

依次执行发现是odl-netconf-client出问题了,在继续执行odl-netconf-client下的项目,发现都能通过,则查看bundle中的依赖


查找后,发现netconf-config的依赖异常(在依赖中有.lastUpdate或如下的异常文件,则jar可能不可用)。将1.2.0-Carbon目录删除,执行mvn clean install 去重新下载依赖则可

本文标签: 环境Opendaylightfeature