I'm currently developing an Eclipse plugin. Its building and deploying is supported by Tycho and Maven. Now I would like to add Googles Guava v. 14 to the project as a dependency. On the Tychos wiki page I have found that it can only resolve dependencies if they are OSGi bundles. I was not able to find this version of Guava as an OSGi bundle. So what is the common workaround for this situation?
- Check out interested revision from
Guava
repository, addMANIFEST
, bundle it and add to the projects path, seams to me like a very dirty workaround — I need to maintain this bundle by myself, I can't simply upgrade a bundle, I need to commit a binary in the VCS for CI. - Doing the same but storing the bundle in some maven repository — Maintaining a repository with source code actually duplicates existing, upgrading not so simple to.
It seams to me like very-very hard to import existing java code in OSGi projects.