You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Oliver Lietz (JIRA)" <ji...@apache.org> on 2018/03/28 10:56:00 UTC

[jira] [Updated] (SLING-7546) Take requirements for services into account

     [ https://issues.apache.org/jira/browse/SLING-7546?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oliver Lietz updated SLING-7546:
--------------------------------
    Description: 
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]

----

* [-PAXWEB-1155 Add missing capability: OSGi service ServletContext-|https://ops4j1.jira.com/browse/PAXWEB-1155]

  was:
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]


> 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]
> ----
> * [-PAXWEB-1155 Add missing capability: OSGi service ServletContext-|https://ops4j1.jira.com/browse/PAXWEB-1155]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)