I've been looking into OSGi for a while and I'm wondering about the best way to deal with "legacy" libraries (that are released as plain JARs, not as OSGi bundles).
What do you think is the best way to handle these? Modifying their manifest file and adding the minimal bundle-specific information, then repackaging them is what I do at the moment, but it seems somehow wrong to me. Should I just use manual dependency management for these JARs (I do this for those libraries which have a high probability of being used only in a certain part of my application)?
As far as they are available, I'm using bundles for Eclipse (since I'm using Equinox as OSGi platform, this works out well for those libraries that are available as bundles).
Are there any bundle-repositories besides the Eclipse-bundles that I should know of?