Hi Sahoo, Sahoo schrieb: > I am dealing with some poorly packages artifacts. I say poorly packaged > because they have split a package. I will use a simple example to > describe my problem: > artifact a.jar has p1 and p2. > artifact b.jar has p1 and p3. > a.jar and b.jar contains disjoint sets of classes from package p1. > > I want to make two OSGi bundles: > OSGi bundle b1.jar should contain and export p1 and p2. It should > contain union of classes from p1 package found in a.jar and b.jar. > OSGi bundle b2.jar should contain and export p3. > Both the bundle jars should inline the classes. > > How do I do this in maven bundle plugin? How should my Include-Resources > look like? I am having hard time referencing either a.jar or b.jar in > <Include-Resource/>.
I think this should work : Bundle b1: depend on a.jar and b.jar (compile scope) and export p1, p2. Maybe you have to mark the export of p1 with the -split-package directive -- you might try <Export-Package>p1;-split-package:=merge-first</Export-Package> Bundle b2: depend on b.jar (compile scope) and export p3 This should do the trick of merging the split p1 package in Bundle b1. Regards Felix > > Thanks, > Sahoo > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

