You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Grzegorz Grzybek (JIRA)" <ji...@apache.org> on 2018/02/01 18:09:01 UTC
[jira] [Resolved] (KARAF-5591) Blacklisted features should be
considered as dependencies and/or conditionals
[ https://issues.apache.org/jira/browse/KARAF-5591?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Grzegorz Grzybek resolved KARAF-5591.
-------------------------------------
Resolution: Fixed
> 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
> Priority: Major
> 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">
> <feature dependency="true" version="3.1.11">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)