[
https://issues.apache.org/jira/browse/MARMOTTA-428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15370712#comment-15370712
]
Aaron Coburn commented on MARMOTTA-428:
---------------------------------------
[~wikier], the {{features.xml}} isn't used at runtime. It is used by Karaf
(http://karaf.apache.org) to "provision" or install groups of OSGi bundles that
would form some coherent group. This is otherwise rather tedious to do, since
one would need to manually install all of the transitive dependencies for a
given artifact. Typically (or at least the pattern I've commonly seen), is to
attach the {{features.xml}} file to its own maven artifact.
In the ActiveMQ project, for example, that module (activemq-karaf) is at the
top level of the directory structure:
https://github.com/apache/activemq/tree/master/activemq-karaf
In the Camel project, the Karaf features are part of a {{./platform/karaf}}
module: https://github.com/apache/camel/tree/master/platforms/karaf
In the CXF project, they have a {{./osgi/karaf}} module:
https://github.com/apache/cxf/tree/master/osgi/karaf
In a word, it doesn't so much matter where the module resides so long as it is
a separate maven artifact.
The end result would be that, in the Karaf console, one could simply type:
{{feature:repo-add mvn:org.apahce.marmotta/marmotta-karaf/LATEST/xml/features}}
to install the "features repository" and then simply {{feature:install
ldcache}} (e.g. to install the {{ldcache}} library). Or, in my case, it would
make some other {{features.xml}} file considerably simpler, since all of the
Marmotta-related dependencies could be installed by means of one or two lines
of XML.
> Make Marmotta more OSGI friendly
> --------------------------------
>
> Key: MARMOTTA-428
> URL: https://issues.apache.org/jira/browse/MARMOTTA-428
> Project: Marmotta
> Issue Type: Improvement
> Reporter: Rupert Westenthaler
> Assignee: Rupert Westenthaler
>
> This issue is about making live for users easier that want to use Apache
> Marmotta within an OSGI environment.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)