# Problems finding my built feature on karaf

Hello, I wanted to do some modification on the l2switch, so i pulled the l2switch code, added modifications and rebuilt in l2switch directory. Now my question is how can i test my new implementation? can I run it directly from l2switch/distribution/karaf/target/assembly , and will i be able to see my changes? Thank you very much

D.

edit retag close merge delete

Sort by » oldest newest most voted

Hi Didu , Of course your changes will reflected when you launch your karaf . Write Some Log messages , and check your Log file to make sure its reflected or not ! .

And If you want to reflect these changes when you install L2switch - feature in ODL Integration-distribution , Then You have to build your ODL Integration-distribution too , So that it will get the updated L2switch from .m2 ! . in this case , you should take care of l2switch version . L2switch Version should be matched with what is mentioned in pom file of Integration-distribution . To put it in simply , take beryllium versions of L2switch and Integration-distribution.Do modification in L2 , and build the both projects. Your changes will be reflected !

more

Thank you for your reply Karthik330, as you suggested i pulled the integration from the git repository and tried to build it . I got this mistake:

ubuntu@sdnhubvm:~/SDNproject/integration[03:02] (master)$mvn clean install -DSkipTests [INFO] Scanning for projects... [ERROR] [ERROR] Some problems were encountered while processing the POMs: [FATAL] Non-resolvable parent POM for org.opendaylight.integration:root:0.4.0-SNAPSHOT: Failure to find org.opendaylight.odlparent:odlparent:pom:1.6.0-SNAPSHOT in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ was cached in the local repository, resolution will not be reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced and 'parent.relativePath' points at no local POM @ line 3, column 11 @ [ERROR] The build could not read 1 project -> [Help 1] [ERROR] [ERROR] The project org.opendaylight.integration:root:0.4.0-SNAPSHOT (/home/ubuntu/SDNproject/integration/pom.xml) has 1 error [ERROR] Non-resolvable parent POM for org.opendaylight.integration:root:0.4.0-SNAPSHOT: Failure to find org.opendaylight.odlparent:odlparent:pom:1.6.0-SNAPSHOT in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ was cached in the local repository, resolution will not be reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced and 'parent.relativePath' points at no local POM @ line 3, column 11 -> [Help 2] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException An idea about where it comes from? I managed also to rebuild my distribution ubuntu@sdnhubvm:~/SDNproject/distribution[03:02] (master)$ mvn clean install -DSkipTests
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] integration ........................................ SUCCESS [ 10.925 s]
[INFO] features-integration-index ......................... SUCCESS [10:01 min]
[INFO] features-integration-test .......................... SUCCESS [09:03 min]
[INFO] distribution-karaf ................................. SUCCESS [10:08 min]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 29:31 min
[INFO] Finished at: 2016-06-03T00:27:46-07:00
[INFO] Final Memory: 172M/372M
[INFO] ------------------------------------------------------------------------

and I see that it succeeded in the integration. are both buildings different by their effects? Why the integration repo can't work when other repo work ? Thank you so much!

more

Integration failed bec->its searching odlparent:1.6.0-SNAPSHOT in "https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/opendaylight/odlparent/odlparent/" which is not present ! Distribution is succeed bec -> >its searching odlparent 1.7.0-SNAPSHOT which is present !

( 2016-06-03 05:55:52 -0700 )edit

use Integration-Distribution! . And hope your changes in L2switch are reflected when you install l2 feature in ODL . is'nt it? If you face any problem, plz let me know :-)

( 2016-06-03 05:59:45 -0700 )edit

Thanks a lot! yes , the settings.xml file was missing into ~/.m2. So now it compiled :) but i don't know yet if my changes work as karaf managed not to work now when i call it from the mininet. I am figuring out a solution for that..

( 2016-06-03 13:22:35 -0700 )edit