Hi Veena,
There is a way where you can just make the third party bundle part of the project bundle.
Suppose you have a third party bundle called 'thirdparty.jar'. Follow the steps :
1. Add dependency to the pom.xml
<dependency>
<groupId>com.thirdparty</groupId>
<artifactId>my-bundle</artifactId>
<version>1.0.0</version>
<scope>system</scope>
<systemPath>${project.basedir}/../repo/thirdparty.jar</systemPath>
</dependency>
if you have the bundle in your system , you can simply give the path to that bundle using the scope 'system'. Here, the folder 'repo' is besides the bundle folder in the project structure.
2. In your maven bundle plugin configuration in pom.xml, add the jar to the embed-dependency option like that:
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.3.7</version>
<configuration>
<instructions>
<Embed-Dependency>*;scope=system</Embed-Dependency>
</instructions>
</configuration>
</plugin>
3. Build the maven project
4. Go to the target folder where you built bundle/jar is present, extract the jar, you will notice that the thirdparty jar is embedded in the bundle jar. I have attached the screenshot for your reference that shows the content of the extracted bundle containing the thirdparty jar.
Source image file 6576 not available