[
https://issues.apache.org/jira/browse/SLING-7546?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16404446#comment-16404446
]
Oliver Lietz commented on SLING-7546:
-------------------------------------
[~rombert], I've an adjusted and working (probably incomplete) {{feature.xml}}
and will create issues for each bundle in the next days. For Oak it's:
{noformat}
<capability>
osgi.service;objectClass=org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore,
osgi.service;objectClass=org.apache.jackrabbit.oak.spi.blob.BlobStore
</capability>
<capability>
osgi.service;objectClass=org.apache.jackrabbit.oak.api.jmx.CacheStatsMBean,
osgi.service;objectClass=org.apache.jackrabbit.oak.api.jmx.QueryEngineSettingsMBean,
osgi.service;objectClass=org.apache.jackrabbit.oak.spi.mount.MountInfoProvider,
osgi.service;objectClass=org.apache.jackrabbit.oak.spi.security.SecurityProvider,
osgi.service;objectClass=org.apache.jackrabbit.oak.spi.state.NodeStore,
osgi.service;objectClass=org.apache.jackrabbit.oak.spi.state.NodeStoreProvider,
osgi.service;objectClass=org.apache.jackrabbit.oak.stats.StatisticsProvider
</capability>
{noformat}
> Take requirements for services into account
> -------------------------------------------
>
> Key: SLING-7546
> URL: https://issues.apache.org/jira/browse/SLING-7546
> Project: Sling
> Issue Type: Improvement
> Components: Karaf
> Reporter: Oliver Lietz
> Assignee: Oliver Lietz
> Priority: Major
> Fix For: Karaf Features 0.2.0, Karaf Integration Tests 0.2.0,
> Karaf Distribution 0.2.0
>
>
> Karaf takes requirements for services into account by default when resolving
> features ({{serviceRequirements}} in {{etc/org.apache.karaf.features.cfg}}).
> This feature has to be disabled for Sling as not all bundles (Sling and
> Jackrabbit/Oak) provide proper meta data for capabilities.
> The meta data for missing capabilities can be added to Sling's Karaf features
> but should be added to the bundles themselves.
> Proper meta data allows running Sling on Karaf without adjusting Karaf's
> configuration.
> * [Feature and
> resolver|https://karaf.apache.org/manual/latest/provisioning#_feature_and_resolver]
> * [KARAF-3520 FeatureService fails to install feature in case of missing
> capability|KARAF-3520]
> * [KARAF-4980 OSGi framework capabilities: add all services|KARAF-4980]
> * [OSGi Contracts
> (wonkish)|http://blog.osgi.org/2013/08/osgi-contracts-wonkish.html]
> * [Using Requirements and
> Capabilities|http://blog.osgi.org/2015/12/using-requirements-and-capabilities.html]
> * [RFP-167 Manifest
> Annotations|https://github.com/osgi/design/blob/master/rfps/rfp-0167-Manifest-Annotations.pdf]
> * [RFC 220 Bundle
> Annotations|https://github.com/osgi/design/blob/master/rfcs/rfc0220/rfc-0220-Bundle-Annotations.pdf]
> * [bnd Manifest
> Annotations|http://bnd.bndtools.org/chapters/230-manifest-annotations.html]
> * [Add support for new OSGi Bundle Annotations (RFC
> 220)|https://github.com/bndtools/bnd/issues/1343]
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)