Karaf
  1. Karaf
  2. KARAF-1350

features-maven-plugin cannot resolve a feature without an explicit descriptor

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.0.2, 4.0.0.M3
    • Component/s: karaf-tooling
    • Labels:
      None

      Description

      I have a project whose features file is pulling in Apache CXF like this:

      <feature name="cxf-spring-security" version="@cxf.spring.security.version@">
          <feature>cxf</feature>
          <feature>spring-security</feature>
             <bundle>mvn:com.google.code.cxf-spring-security/cxf-spring-security/@cxf.spring.security.version@</bundle>
          </feature>
      </feature>
      

      However, the descriptors in the configuration of the add-features-to-repo goal looks like this:

      <descriptors>
          <descriptor>mvn:org.apache.karaf.assemblies.features/standard/${karaf.version}/xml/features</descriptor>
          <descriptor>mvn:org.apache.camel.karaf/apache-camel/${camel.version}/xml/features</descriptor>
          <descriptor>mvn:org.apache.activemq/activemq-karaf/${activemq.version}/xml/features</descriptor>
          <descriptor>mvn:com.ateb/com.ateb.myx.features.base/${project.version}/xml/features</descriptor>
          <descriptor>mvn:com.ateb/com.ateb.myx.features.spring/${project.version}/xml/features</descriptor>
      </descriptors>
      

      The CXF repository descriptor is not specified, but the CXF feature is found with features-maven-plugin <= 2.2.6; in 3.0.0-SNAPSHOT, this "transitive" resolution appears to be broken.

        Activity

        Show
        Jean-Baptiste Onofré added a comment - Fixed on install-kar on master: https://git-wip-us.apache.org/repos/asf?p=karaf.git;a=commitdiff;h=2f3fc9a45ddf8b6e7f5f228544284365ea7ff545
        Show
        Jean-Baptiste Onofré added a comment - Fixed on install-kar on karaf-3.0.x: https://git-wip-us.apache.org/repos/asf?p=karaf.git;a=commitdiff;h=69fe0b8e1f9ef527da5e76dd3a425378b1f653a4 https://git-wip-us.apache.org/repos/asf?p=karaf.git;a=commitdiff;h=39748c78fb12dc4c03e08691af32e6d54346499d

          People

          • Assignee:
            Jean-Baptiste Onofré
            Reporter:
            Scott Parkerson
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development