Ask Your Question

How do I tell ODL to install features from local .m2 repository?

asked 2016-07-19 13:39:16 -0700

qwertyuiop gravatar image

updated 2016-07-19 13:39:45 -0700

As the title states, is this automatically done? I want to edit the DLUX code and therefore when I do feature:install odl-dlux-all I want it to install my version.

Is there a better way of doing this?


edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2016-07-21 15:19:03 -0700

jamoluhrsen gravatar image

The other method that I use is to first clone, edit and build your project (in this case, DLUX) repo. That will put it's build artifacts in your local .m2 repo.

Next clone and build the integration-distribution repo. This will use any artifacts from your local .m2 repo first and then from nexus next. So, the resulting "full" distribution .zip in distribution-karaf/target/ will also have your dlux changes.

karthik330's method probably works fine, just giving another option.

edit flag offensive delete publish link more

answered 2016-07-19 22:57:41 -0700

karthik330 gravatar image

updated 2016-07-19 23:00:07 -0700

Hi ,

This will be automatically done if you have the exact matching version of DLUX in ODL.

EX. suppose you cloned 0.3.3-SNAPSHOT DLUX version , make sure the same version is mentioned in ODL pom.xml file . Once you build your ODL it will take the modified DLUX from .m2 . Simply putting take stable/beryllium version of DLUX and ODL . Then modify the DLUX , build the both projects. install dlux. you can see Your modifications ! here ODL i mean Integration -distribution of ODL

edit flag offensive delete publish link more


I'm trying to use repo-add to tell the controller to use .m2 repository because I have a prebuilt controller and therefore no pom.xml file. If I have to edit ODL pom.xml, where and how would I do it?

qwertyuiop ( 2016-07-20 08:31:06 -0700 )edit

Download the source code from ; and start using it after built . There you will see the pom and all. use the below command repo-add mvn:org.opendaylight.dlux/features-dlux/X-X-X-SNAPSHOT/xml/features ; and install dlux

karthik330 ( 2016-07-21 02:00:11 -0700 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2016-07-19 13:39:16 -0700

Seen: 58 times

Last updated: Jul 21 '16