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, add manifest, 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

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -