java - Using non-OSGi packages in Eclipse Plugins -
i'm developing eclipse plugin. building , deploying supported tycho , maven. add googles guava v. 14 project dependency. on tychos wiki page have found can resolve dependencies if osgi bundles. not able find version of guava osgi bundle. common workaround situation?
- check out interested revision
guava
repository, addmanifest
, bundle , add projects path, seams me dirty workaround — need maintain bundle myself, can't upgrade bundle, need commit binary in vcs ci. - doing same storing bundle in maven repository — maintaining repository source code duplicates existing, upgrading not simple to.
it seams me very-very hard import existing java code in osgi projects.
don't try convert library osgi bundle yourself:
either, simple turn library osgi bundle, e.g. if correct manifest can generated using 1 of bnd based tools.
in case, provider of library should directly. maven build, they'd need add
bundle
goal of maven-bundle-plugin.or, hard turn library osgi bundle, e.g. because library uses class loading concepts don't work in osgi.
in case, library need changed, , can done provider of library.
Comments
Post a Comment