Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-5591

Blacklisted features should be considered as dependencies and/or conditionals

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.2.0.M2
    • 4.2.0
    • karaf
    • None

    Description

      When I blacklisted some features (e.g., pax-*-jetty), they were still downloaded and considered during resolution when used inside conditionals:

      <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>
      

      or dependencies:

          <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>
      

      Resolver should not take them into account (assuming the user who blacklists the features knows what (s)he does)

      Attachments

        Issue Links

          Activity

            People

              ggrzybek Grzegorz Grzybek
              ggrzybek Grzegorz Grzybek
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: