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

0

Problems finding my built feature on karaf

asked 2016-06-02 06:02:43 -0800

Didiu gravatar image

updated 2016-06-06 10:38:04 -0800

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 flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2016-06-02 23:21:27 -0800

karthik330 gravatar image

updated 2016-06-02 23:29:03 -0800

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 !

edit flag offensive delete publish link more
0

answered 2016-06-03 03:12:47 -0800

Didiu gravatar image

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!

edit flag offensive delete publish link more

Comments

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 !

karthik330 ( 2016-06-03 05:55:52 -0800 )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 :-)

karthik330 ( 2016-06-03 05:59:45 -0800 )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..

Didiu ( 2016-06-03 13:22:35 -0800 )edit
Login/Signup to Answer

Stats

Asked: 2016-06-02 06:02:43 -0800

Seen: 61 times

Last updated: Jun 06 '16