How add maven dependencies to the Bundle-ClassPath of the bnd-Gui.

789 views
Skip to first unread message

Kai Ulrich

unread,
Oct 10, 2012, 5:58:12 AM10/10/12
to bndtool...@googlegroups.com
Hi 

I am using a maven project with the maven-bundle-plugin in the bnd-Gui (eclipse plugin 1.0.0-REL).

I try to add the maven dependencies (as plane java jars) to the Bundle-ClassPath of the generated bundle and run it with a new Run Descriptor. 

Any idea how to manage that?

fr
Kai



Kai Ulrich

unread,
Oct 10, 2012, 8:17:30 AM10/10/12
to bndtool...@googlegroups.com
By the way:
The Failure when I try to execute the bundle is:

! could not resolve the bundles
-> ! Failed to start bundle org.my.server-0.0.1, exception Unresolved constraint in bundleorg.my.server [6]: Unable to resolve 6.0: missing requirement [6.0] osgi.wiring.package; (osgi.wiring.package=org.bouncycastle.jce.provider)

Neil Bartlett

unread,
Oct 10, 2012, 9:11:26 AM10/10/12
to bndtool...@googlegroups.com
You're using the Embed-Dependency instruction, which is a feature of the maven-bundle-plugin that is built on top of bnd, and it's that part that seems to be going wrong. Therefore I think it would be better to ask your question on the Apache Felix user list, because that's where the maven-bundle-plugin is supported.

Regards,
Neil
10 October 2012 13:17
By the way:
The Failure when I try to execute the bundle is:

! could not resolve the bundles
-> ! Failed to start bundle org.my.server-0.0.1, exception Unresolved constraint in bundleorg.my.server [6]: Unable to resolve 6.0: missing requirement [6.0] osgi.wiring.package; (osgi.wiring.package=org.bouncycastle.jce.provider)


Am Mittwoch, 10. Oktober 2012 11:58:12 UTC+2 schrieb Kai Ulrich:
10 October 2012 10:58

Kai Ulrich

unread,
Oct 10, 2012, 10:29:11 AM10/10/12
to bndtool...@googlegroups.com
So by adding Embed-Dependency entry in the pom the maven depandencies are avaible in the bndtools eclipse plugin ide? 
Reply all
Reply to author
Forward
0 new messages