Ask is moving to Stack Overflow and! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode


Install HelloWorld application into another ODL instance

asked 2016-05-11 03:26:02 -0700

Lorunification gravatar image

updated 2016-05-11 07:40:17 -0700

I followed the instructions given in the developers guide to implement and build the hello world RPC. Within the built project, everything works as intendet.

My question now is, how can I install this hello world module into a different (already present) instance of ODL? Furthermore, is it possible to create "standalone" applications that do not build their own version of ODL like it was possible with the hydrogen release?

I used to build only my project and install the .jar file into a running ODL instance. Is something like this still possible?


I managed to add my project as a repo by copying the content of .m2/repositories/... to distribution/system. feature:install now produces the error below:

opendaylight-user@root>feature:install odl-hello
Error executing command: Can't install feature odl-hello/0.0.0:     
Could not start bundle mvn:org.opendaylight.hello/hello-api/1.0.0-SNAPSHOT in feature(s) odl-hello-api-1.0.0-SNAPSHOT: The bundle "org.opendaylight.hello.api_1.0.0.SNAPSHOT [278]" could not be resolved. Reason: Missing Constraint: Import-Package: org.opendaylight.yangtools.concepts; version="[1.0.0,2.0.0)"

Furthermore, it seems that the concepts bundle is already installed and running in my distribution:

opendaylight-user@root>exports | grep concepts
    org.opendaylight.yangtools.concepts     | 0.8.1 | 84  | org.opendaylight.yangtools.concepts                          
opendaylight-user@root>bundle:list | grep concepts
     84 | Active   |  80 | 0.8.1.Beryllium-SR1                | concepts

I already tried adding


to my api/pom.xml but that did nothing.

How can i include the package so my bundle can be resolved?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2016-05-11 19:34:07 -0700

Qing Dong gravatar image

I wrote a blog in Chinese and recorded the integration steps, hope it helps. Please refer to:

edit flag offensive delete publish link more

answered 2016-05-11 19:42:59 -0700

karthik330 gravatar image

Hi , if you want to install your hello to another running ODL , 1. Both the versions should be same.i mean all the dependencies mentioned in your hello project should be same as mentioned in ODL. I believe in your case , yangtool version is different.thats why it's throwing error. Once you make sure all the versions are same , then only add the dependency of hello project in ODL - features-index-src- features.xml , ODL- features -pom.xml . These two places you have to mention. Then built it. Once you launch karaf check feature:list| grep hello . You l get it. Tip- build your hello Project newly so that it will comes with new ODL beryllium version dependency. And take stable/beryllium ODL integration distribution. You won't face version mismatch problem! .

edit flag offensive delete publish link more


Thanks. Using the integration distribution instead of the pre-built beryllium download worked.

Lorunification ( 2016-05-12 03:32:31 -0700 )edit

Ok. Nice!.

karthik330 ( 2016-05-12 07:19:44 -0700 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2016-05-11 03:26:02 -0700

Seen: 165 times

Last updated: May 11 '16