I'm developing a bundle with some third party dependencies. The bundle refers the core and connection functionalities from two different jars of that third-party.
Then i do the Import-Package with maven-bundle-plugin i could only consume a single import package from any of the jar and not both at the same time (referred other threads and couldn't get a clear understanding of the JAR import). Or is it a problem with the package organization of the third-party?
JAR A -> package -> com.test.pkg [contains class1, class2] JAR B -> package -> com.test.pkg [contains class3]
The Import-package imports com.test.pkg, but my application is in need for class3, and when during run-time my containers throws a ClassDefNotFoundException when class3 was referred. Not sure i've understood the concept wrong.
POM snippet is as below
<Import-Package>*,com.test.pkg</Import-Package>
Is there a way I can tell to my OSGi container to get the package from specific JAR.?