From my experience using a qualifier in the versions in import package is causing troubles. What should the qualifier be resolved to when determining the version range?
You are complaining that other packages are resolved well with the SNAPSHOT qualifier in import package. But have you tried to get rid of it for the import package statements? It should be ok for export package afaik, but for import package it doesn't make sense, since you specify the minimum requirement you need, and the qualifier (as it can be anything) contains no information that can be verified.
If you are trying to OSGi-ify a third-party library (TPL), I've had a lot of success with a "wrapper" jar that contains the raw TPL jar as an embedded member.
One of the more complex examples is this OSGi bundling for JOGL:
By tweaking the Export-Package element, it is possible to expose all sort of internal packages.
I've already done this. The MANIFEST of the osgified library exports all I need.
The problem is with Tycho not resolving the packages containing the "impl" word in their names.
Il looks like Tycho has problems resolving the imports from bundles exporting packages which contain "impl" in their names.
I understand that importing "impl" or "internal" packages is a bad idea and that other plugins (e.g. maven-bundle-plugin) by default don't export these packages but I'm trying to OSGi-fy an existing third party library and I need to import all of it's packages
in another bundle.
Cap. Soc. 8.878.946,00 € I.V. | P.IVA / C.F.: IT 01791330309
| REA Udine 196115 www.eurotech.com ____________________________________ Il presente messaggio ed ogni suo allegato sono da intendersi inviati esclusivamente agli effettivi destinatari e potrebbero essere soggetti a restrizioni
legali. Se avete ricevuto questo messaggio per errore vi invitiamo a darne immediata notifica al mittente e cancellarlo dal vostro sistema. Qualsiasi altro uso di questo messaggio da parte vostra e' strettamente proibito.
This e-mail, and any file attached to it, is meant only for the
intended recipient of the transmission and may be a communication privileged by law. If you have received it in error, please notify the sender immediately and delete the original from your system. Any other use of this e-mail by you is strictly forbidden.
____________________________________
Per favore, pensate all’ambiente prima di stampare
questa e-mail. Please consider the environment before printing this e-mail.