How to handle packages provided Java using Eclipse P2

Posted by ctron on Stack Overflow See other posts from Stack Overflow or by ctron
Published on 2010-02-26T11:25:17Z Indexed on 2010/04/19 10:23 UTC
Read the original article Hit count: 322

Filed under:
|
|
|
|

I got some OSGi bundles in binary form that declare dependencies to bundles like "org.ietf.jgss" which are provided by Java itself. P2 detects these dependencies and when I try to install the product later using the P2 director application the installation fails since no bundle provides these packages. But if I use the P2 product build I get a complete installed product that I can use.

My problem is that I don't want to create product files and build for each variation of the application. So tried the approach to copy all P2 repositories in order to install the product on the target system using the P2 director.

So how do I handle dependencies to packages provided by Java and how to I "convince" P2 to ignore these packages if they are provided by Java itself.

Thanks for helping.

© Stack Overflow or respective owner

Related posts about p2

Related posts about eclipse-pde