Provider for the Apache Sling OSGI Installer Framework that installs Resources provided by OSGI Bundles.
The OSGi installer is a central service for handling installs, updates and uninstall of “artifacts”. By default, the installer supports bundles and configurations for the OSGi configuration admin. Apache Stanbol extends this by the possibility to install Solr indexes (see “org.apache.stanbol.commons.solr.install” for details).
Note: While the Sling OSGI Installer by default supports the installation of Bundles this extension allows to install resources provided by bundles.
This implementation tracks all Bundles of the OSGI Environment that define the “Install-Path” key. The value is interpreted as path to the folder within the bundle where all installable resources are located. Also resources in sub-directories will be installed.
If a Bundle defining this key is
NOTE: Precious versions uninstalled resources if a Bundle was STOPPED. See STANBOL-464 for more information regarding the change to use UNINSTALL instead.
When using the maven-bundle-plugin the “Install-Path” header can be defined like this:
<plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-bundle-plugin</artifactId> ... <configuration> <instructions> <Install-Path>data/config</Install-Path> </instructions> </configuration> </plugin>
This would install all resrouces located within
data/config/*
Note: that also Resource within sub-directories would be installed.