Ask Your Question
1

Where to copy jar in karaf distribution

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

techdeveloper gravatar image

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

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 https://wiki.opendaylight.org/view/SNMP4SDN:Installation_Guide . 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
2

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

Dana gravatar image

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

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

Comments

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 -0700 )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 -0700 )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 -0700 )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 -0700 )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 -0700 )edit
Login/Signup to Answer

Stats

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

Seen: 587 times

Last updated: Dec 05 '14