I am currently deploying maven
managed bundles into the felix
framework and I want to create a maven
project for the deployment process and want to automate all the process using maven plugins.
Using maven-dependency-plugin
we can somehow automate the deployment process.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.8</version>
<executions>
<execution>
<id>unpack-felix</id>
<phase>compile</phase>
<goals>
<goal>unpack-dependencies</goal>
</goals>
<configuration>
<includeArtifactIds>org.apache.felix.ipojo.distribution.quickstart</includeArtifactIds>
<outputDirectory>${project.build.directory}/tmp</outputDirectory>
</configuration>
</execution>
<execution>
<id>copy-bundles</id>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<includeArtifactIds>
sample.maven.bundle1,
sample.maven.bundle2,
.
.
sample.maven.bundleN
</includeArtifactIds>
<outputDirectory>${project.build.directory}/bundle</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
But all the bundles mentioned in the <includeArtifactIds>
will be static and we might have problems updating them using bundle:update
or felix:update
.
How can I deploy the bundles into felix
or karaf
the same as running felix:deploy
inside felix
but called using maven
instead ?