Ask Your Question

Adding a jar to MDSAL plugin

asked 2015-04-21 04:17:59 -0700

odl_learn gravatar image

Basically I am developing a MDSAL plugin (using MDSAL archetype) which is using a 3rd party jar file (in my case calc.jar which i have built for testing). I have added the jar file to maven repository and then added the same as dependency to my pom file. Plugin compiles just fine but when I tried to deploy my plugin to ODL and start, I get

Error executing command: Error executing command on bundles: Unable to execute command on bundle 171: The bundle "org.opendaylight.hello.impl_1.0.0.SNAPSHOT [171]" could not be resolved. Reason: Missing Constraint: Import-Package: com.test; version="0.0.0"

Everybody seems to suggest that I need to add com.test under 'Import-Package', but I dont find the tag in my pom.xml.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2016-07-20 00:44:59 -0700

pande.gaurav gravatar image


Yes indeed you need to import the com.test package to your bundle. The "Import-Package" tag can be found under the maven-bundle-plugin. You may need to write a new plugin, if it is not in your pom.xml

To create a maven-bundle-plugin you can refer the below link:

Hope it helps

edit flag offensive delete publish link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

1 follower


Asked: 2015-04-21 04:17:59 -0700

Seen: 235 times

Last updated: Jul 20 '16