| Summary: | tooling must support embedded jars on Bundle-Classpath | ||
|---|---|---|---|
| Product: | [RT] Virgo | Reporter: | Martin Lippert <mlippert> |
| Component: | tooling | Assignee: | Project Inbox <virgo-inbox> |
| Status: | NEW --- | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | cocoa, eclipse, leo.dos.santos, mlippert |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Martin Lippert
OK, I'm not sure that we *should* support this. Embedded jars are haveily discouraged for Eclipse bundles in general. Jars should be deployed as plugin-jars. This seems to me to be consistent with an overall OSGi friendly approach. Is this really a use case we need to support for users, or should we instead focus encourage the deploying of jars correctly through project warnings? Thoughts? My use case was using a library that was so OSGi-hostile that it was simply the easiest way to embed all required Jars in the bundle. OSGi-fying the library would have been close to impossible. Through embedding the library saw all it's required resources and classes on the classpath and worked flawlessly. While I agree that embedded Jars should be avoided, I still think it would be reasonable to support them. After all, all OSGi containers support it too. Fair enough. Did you try "Plugin-in from Existing Jar archives"? Were you able to find another decent work-around? Not trying to push back on it, just trying to work through some triage priorities. I realized that I could live without that particular library, that's how I got around the issue. I could have unpacked all the jars of the library (there were many), as you've mentioned. So I was just a bit lazy. Still, at least a decent warning / error would be great. OK, thanks for the feedback Alfredo. FWIW, that's how I usually feel about this issue -- it's a PITA to deal with, but it's usually worth the pain. However, we really do need to support it, at the very least so that we don't break people's existing stuff. If people have an immediate need for this fix, please do comment or vote and we'll move it up the queue. N.B. for people who don't have background on this: In addition to compatibility issues, embedded jars can cause performance and space issues in Equinox context and won't work in some other contexts. See for example: http://dev.eclipse.org/mhonarc/lists/equinox-dev/msg02251.html |