I am using serviceMix to deploy my bundles. Whereas I am using maven to create my bundles as follow:
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.3.6</version>
<extensions>true</extensions>
<configuration>
<instructions>
<Bundle-SymbolicName>${project.groupId}.${project.artifactId}</Bundle-SymbolicName>
<Bundle-Description>${project.description}</Bundle-Description>
<Bundle-Activator>mycom.project.PubSub.activator.Activator</Bundle-Activator>
<Import-Package>*,org.apache.camel.osgi,org.java_websocket.*, mycom.project.ManageSQL.Interface.SQLInterface
</Import-Package>
<Export-Package>mycom.project.PubSub.Manager.Manager</Export-Package>
<Private-Package>org.java_websocket.*, mycom.project.PubSub.*, io.socket.*, okhttp3.*, okhttp3.internal.connection, okio.*, org.json.*</Private-Package>
<BundleType>project</BundleType>
</instructions>
</configuration>
</plugin>
I Import a class from one of my others bundle as follow:
<Import-Package>*,org.apache.camel.osgi,org.java_websocket.*, mycom.project.ManageSQL.Interface.SQLInterface</Import-Package>
But when I try to access it inside my current Bundle, it gives me error that no such class is there.
I am using eclipse and maven to create bundles and deploy them on serviceMix.
Here is the Image of the pom project where I am trying to use that bundle.
And below is the image of the bundle which I created and want to use its imported package.

