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

Revision history [back]

click to hide/show revision 1
initial version

This is likely a proxy issue or some sort of corrupted local maven repository. Try the following steps.

Maven Settings

Check that maven is installed and your settings.xml file for maven at /usr/share/maven/conf/settings.xml is configured correctly (double check proxy settings, nexus repository settings etc). Edit etc files for karaf to point to shared maven config:

cd <karaf-distro>/etc

Edit org.ops4j.pax.url.mvn.cfg and add

org.ops4j.pax.url.mvn.settings=/usr/share/maven/conf/settings.xml

Proxy

Add proxy setting below only if you are using a proxy

org.ops4j.pax.url.mvn.proxySupport=true

Delete Local Maven Repository and Karaf Data contents

Remove the repository folder in your .m2 directory:

rm -rf ~/.m2/repository

Remove the data folder content:

rm -rf <karaf-distro>/data/*

Karaf uses maven to download dependencies at run-time, if there are conflicts in the maven repository or a proxy is blocking maven from downloading dependencies you will experience this issue.