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


Where to copy jar in karaf distribution

asked 2014-12-02 02:28:14 -0800

techdeveloper gravatar image

updated 2014-12-02 02:30:09 -0800

For osgi, I built snmp4sdn and copied the jar into plugins folder. Similarly where to copy the modified snmp4sdn jar in karaf? I followed the link . But I couldn't get this clearly. Can anyone help me understand?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-12-02 03:10:06 -0800

Dana gravatar image

updated 2014-12-05 02:03:36 -0800

Hi, check this general guide: guide

EDIT: to summarize, you have to make sure, that the code you are editing is the same version as the prebuilt where you copy the jars to. If you're tweaking SR1, your code needs to be from stable/helium branch. If your code is master, your prebuilt ODL must be latest SNAPSHOT version.

edit flag offensive delete publish link more


I followed the guide. After reinstalling snmp4sdn feature i am getting following error Error executing command: Error resolving artifact org.opendaylight.snmp4sdn:snmp4sdn:jar:0.1.4-Helium-SR1: Could not find artifact org.opendaylight.snmp4sdn:snmp4sdn:jar:0.1.4-Helium-SR1 in defaultlocal (file:/root/.m2/repository/)

techdeveloper ( 2014-12-02 05:37:50 -0800 )edit

do i have to replace both .jar and .pom file in the corresponding? Let me explain what I have done. I changed SNMPHandler, took the jar file from "snmp4sdn/snmp4sdn/target", copied to "distribution-karaf-0.2.1-Helium-SR1/system/org/opendaylight/snmp4sdn/snmp4sdn/0.1.4-Helium-SR1" Am i correct?

techdeveloper ( 2014-12-02 05:45:23 -0800 )edit

The guide mentioned about latest snapshot pre-built image. If I am building controller from controller.git, in which folder should I copy the snmp4sdn jar.

techdeveloper ( 2014-12-03 01:14:27 -0800 )edit

I followed the steps in guide and while adding my feature:repo I got the following error, "Error executing command: Error resolving artifact org.opendaylight.snmp4sdn:0.1.3-SNAPSHOT:features:xml: Could not find artifact org.opendaylight.snmp4sdn:0.1.3-SNAPSHOT:features:xml in defaultlocal (file:/root/.m2/repository/)"

techdeveloper ( 2014-12-03 01:51:01 -0800 )edit

There's a version mismatch ( 0.1.4-Helium-SR1 vs 0.1.3-SNAPSHOT ) . If you are playing with Helium-SR1, your code needs to be on top of stable/helium branch, not master.

Dana ( 2014-12-03 02:46:07 -0800 )edit
Login/Signup to Answer


Asked: 2014-12-02 02:28:14 -0800

Seen: 727 times

Last updated: Dec 05 '14