任何人都知道如何在自定义 karaf 发行版中安装 opendaylight restconf。我尝试添加 rest conf 功能 repo 并尝试进行功能安装。但这会因为缺少 odl-config-persister 而失败。当您尝试安装 odl-config-persister 时,会出现另一个错误。有没有其他方法可以在 karaf 中安装 opendaylight restconf。
问问题
639 次
2 回答
0
启动 Karaf 并验证您是否具有此功能:
feature:list | grep 'restconf'
如果是这样,您可以安装它,“功能:安装功能名称”:
feature:install odl-restconf-all
于 2016-03-08T18:21:29.843 回答
0
在构建项目之前,请确保karaf/pom.xml在dependencies标签下包含以下节:
<dependency>
<groupId>org.opendaylight.l2switch</groupId>
<artifactId>features-l2switch</artifactId>
<version>0.7.0-SNAPSHOT</version>
<classifier>features</classifier>
<type>xml</type>
<scope>runtime</scope>
</dependency>
然后,构建您的项目:
[your_project_root]$ mvn clean install -DskipTests
构建完成后,启动karaf并安装odl-l2switch-switch。
[your_project_root]$ cd karaf/target/assembly/bin/
[bin]$ ./karaf
opendaylight-user@root>feature:install odl-l2switch-switch
opendaylight-user@root>
odl-l2switch-switch包含RESTCONF作为依赖项。
于 2018-02-12T19:31:08.033 回答