Grzegorz Grzybek created KARAF-5591:
---------------------------------------
Summary: Blacklisted features should be considered as dependencies
and/or conditionals
Key: KARAF-5591
URL: https://issues.apache.org/jira/browse/KARAF-5591
Project: Karaf
Issue Type: Bug
Components: karaf-feature
Affects Versions: 4.2.0.M2
Reporter: Grzegorz Grzybek
Assignee: Grzegorz Grzybek
Fix For: 4.2.0
When I blacklisted some features (e.g., {{pax-*-jetty}}), they were still
downloaded and considered during resolution when used inside conditionals:
{code:xml}
<feature name="pax-cdi-weld" description="Weld CDI 1.2 support"
version="1.0.0.RC2">
<feature version="1.0.0.RC2">pax-cdi-core</feature>
<bundle
dependency="true">mvn:org.jboss.weld/weld-osgi-bundle/2.3.5.Final</bundle>
<bundle
dependency="true">mvn:org.jboss.logging/jboss-logging/3.3.0.Final</bundle>
<bundle dependency="true">mvn:com.google.guava/guava/18.0</bundle>
<bundle
dependency="true">mvn:org.jboss.classfilewriter/jboss-classfilewriter/1.1.2.Final</bundle>
<bundle>mvn:org.ops4j.pax.cdi/pax-cdi-weld/1.0.0.RC2</bundle>
<capability>
pax.cdi.provider;provider:=weld
</capability>
<conditional>
<condition>pax-cdi-web</condition>
<condition>pax-http-jetty</condition>
<bundle>mvn:org.ops4j.pax.cdi/pax-cdi-jetty-weld/1.0.0.RC2</bundle>
</conditional>
<conditional>
<condition>pax-cdi-web</condition>
<condition>pax-http-undertow</condition>
<bundle dependency="true">mvn:javax.el/javax.el-api/3.0.0</bundle>
<bundle>mvn:org.ops4j.pax.cdi/pax-cdi-undertow-weld/1.0.0.RC2</bundle>
</conditional>
</feature>
{code}
or dependencies:
{code:xml}
<feature name="cxf-http-provider" version="3.1.11.fuse-000176">
<feature dependency="true"
version="3.1.11.fuse-000176">cxf-http-jetty</feature>
<requirement>
cxf.http.provider
</requirement>
</feature>
{code}
Resolver should not take them into account (assuming the user who blacklists
the features knows what (s)he does)
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)