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


Feature install fails

asked 2016-09-07 15:35:56 -0700

KushalKumar gravatar image


I am trying to build openaylight coretutorials(lithium build) and the install ncmount application by adding it's feature repository to ODL (distribution-karaf-0.3.0-Lithium) from karaf console. But when I fire the command feature:install odl-ncmount, I get the below error. Can somebody please help me on how to fix this.

Error executing command: Error resolving artifact org.opendaylight.yangtools:features-yangtools:xml:features:0.7.5-SNAPSHOT: Could not find artifact org.opendaylight.yangtools:features-yangtools:xml:features:0.7.5-SNAPSHOT in defaultlocal (file:/home/sdn/distribution-karaf-0.3.0-Lithium/system/)

Regards, Kushal Kumar, TCS

edit retag flag offensive close merge delete

4 answers

Sort by ยป oldest newest most voted

answered 2016-09-08 23:46:14 -0700

karthik330 gravatar image

Hi Kushal , Make sure the version of NCmount and ODL are same. Hope you are using Lithium for both. Here you are adding the feature of ncmount at run time using repo:add. one more step also you try. manually copy the full repository of ncmount (.m2/repo/org/opendaylight/coretutorials/ncmount..) to /home/sdn/distribution-karaf-0.3.0-Lithium/system/{org/opendaylight/coretutorials/} . Then it will work. However it is not efficient way.

I guess you are using tar ball of ODL where no possibility of modifying the source. I recommend you to clone the integration-distribution and add the dependency of ncmount in feature-index/pom.xml and repository of ncmount in feature.xml. Thats all. After building ODL, ncmount feature is ready to install at the karaf console. Even you can make it as boot feature!.

Thanks, Karthik

edit flag offensive delete publish link more

answered 2016-09-29 00:24:48 -0700

sunilkumarms gravatar image

Hi Kushal, you found solution ?? Can you try to remove the data, journals and snapshot folder from karaf->target->assembly folder and try to install again. I had different problem where feature:install was taking long time, i deleted these folders and it worked. I am not sure if this problem is related, just give a try.. :) I am on berylium.

edit flag offensive delete publish link more

answered 2016-10-21 06:59:44 -0700

Hello, when building coretutorial project for a given release, make sure to use mvn clean install -U (for update), that way you'll update your local cache. Another way would be to delete the local cache (~/.m2/repositories/org/opendaylight) to make sure it is refresh.

Hope this helps, Alexis

edit flag offensive delete publish link more

answered 2017-02-19 05:01:09 -0700

KushalKumar gravatar image

updated 2017-02-19 09:15:43 -0700

Thanks everybody for your inputs.


Your approach works but it is not recommended. Can anybody suggest a recommended approach. However, I wanted to know if I want to deploy my own created application in Opendaylight Lithium (tar ball download from official page - distribution-karaf-0.3.0-Lithium ), is it necessary to use project archetypes of the exact same version of Lithium. Now if archetype of this version is not available, I try using some other version of lithium. Now this is where I get the above error while adding it's feature.xml on karaf console.

Sunil and Aditalhouet,

Thanks for your suggestions. I tried your approaches but did not work.

To all, Please suggest.

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2016-09-07 15:35:56 -0700

Seen: 449 times

Last updated: Feb 19 '17