I am using servicemix (v4.5.3) and want to deploy my application (depending on hundreds of third-party libraries) as a package via maven-bundle-plugin.
Below is my pom.xml
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.3.7</version>
<extensions>true</extensions>
<executions>
<execution>
<id>wrap-my-dependency</id>
<goals>
<goal>wrap</goal>
</goals>
<configuration>
<wrapImportPackage></wrapImportPackage>
<instructions>
<Include-Resource>{maven-resources}</Include-Resource>
<Bundle-ClassPath>.</Bundle-ClassPath>
<Embed-Dependency>*;scope=compile|runtime</Embed-Dependency>
<Embed-Transitive>true</Embed-Transitive>
<Import-Package>*</Import-Package>
<Bundle-SymbolicName>${project.groupId}.${project.artifactId}</Bundle-SymbolicName>
<Bundle-Name>${project.artifactId}</Bundle-Name>
<Bundle-Version>1.0.0</Bundle-Version>
<Bundle-Activator>com.bundle.example.Main</Bundle-Activator>
</instructions>
</configuration>
</execution>
</executions>
</plugin>
I followed this to create the package, but when I run mvn bundle: wrap , how does it convert external banks into a package and are placed in the target / class folder of my project.
Now, my request should I have to copy the whole kit and put it in the deployment folder of the servicemix installation directory to run my application. I have followed this approach, but still getting some error while my application starts up.
Manifest file:
Imported Packages
com.dhtmlx.connector from dhtmlxgridConnector (476)
com.google.gson,version=[1.7,2)
com.googlecode.ehcache.annotations,version=[1.1,2)
com.hazelcast.core,version=[2.6,3) from com.hazelcast (437)
com.tinkerpop.blueprints
com.tinkerpop.blueprints.impls.orient
com.tinkerpop.frames
. , , .
: maven-bundle-plugin.
.