SivanBH
SivanBH

Reputation: 392

Updating Opendaylight Unimgr Feature

I am adding a new driver to Opendaylight's unimgr, and I added a new feature to the controller to allow use of this driver.

It works fine, but when I make changes to my driver and rebuild it (mvn clean install -pl my-new-driver -DskipTests), after running feature:install odl-unimgr-my-new-driver, I still get the old version (even if I clear the data folder beforehand, or perform bundle:update and bundle:refresh).

Is there a way to update the feature without building the entire unimgr (and hence the entire controller) again?

Some information about my setup: I use SNAPSHOT versions, and am running the karaf which is built as part of the unimgr project (unimgr/karaf/target/assembly/bin/karaf).

Upvotes: 0

Views: 125

Answers (1)

Tom Pantelis
Tom Pantelis

Reputation: 1349

I believe this is due to the fact that the local project karaf distros copy all the artifacts under target/assembly/system and the target/assembly/etc/org.ops4j.pax.url.mvn.cfg file is set up to only look under system. So to get updates, you can either

  • rebuild the distro in unimgr/karaf
  • copy the updated artifact to the appropriate directory under target/assembly/system and then re-install the feature
  • set org.ops4j.pax.url.mvn.localRepository= in etc/org.ops4j.pax.url.mvn.cfg so it will look in your ~/.m2/repository. Then after re-building the artifact you just need to re-install the feature

Upvotes: 2

Related Questions