任何人都知道如何在自定义的karaf发行版中安装opendaylight restconf。我尝试添加rest conf功能存储库,并尝试进行功能安装。但是,如果提示odl-config-persister缺失,则会导致失败。当您尝试安装odl-config-persister时,会出现另一个错误。有没有其他方法可以在karaf中安装opendaylight restconf。
发布于 2016-03-09 02:21:30
启动Karaf并验证您是否具有此功能:
feature:list | grep 'restconf'如果是这样,你可以安装它,"feature:install feature-name":
feature:install odl-restconf-all发布于 2018-02-13 03:31:08
在构建项目之前,请确保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构建完成后,启动odl-l2switch-switch.并安装karaf
[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作为依赖项。
https://stackoverflow.com/questions/35672731
复制相似问题