Karaf
  1. Karaf
  2. KARAF-1074

features-maven-plugin collects wrong artifacts

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: 2.2.4
    • Fix Version/s: 2.4.0, 3.0.1, 4.0.0, 2.3.5
    • Component/s: karaf-tooling
    • Labels:
      None

      Description

      Scenario:

      • proprietary features1.xml;
      • custom features-main.xml which override one of proprietary feature;
        After build I found proprietary deps instead of overriden one.
      1. assembly.zip
        2 kB
        Alexey Markevich

        Issue Links

          Activity

          Hide
          Freeman Fang added a comment -

          I believe KARAF-2791[1] already fixed this

          [1]https://issues.apache.org/jira/browse/KARAF-2791

          Show
          Freeman Fang added a comment - I believe KARAF-2791 [1] already fixed this [1] https://issues.apache.org/jira/browse/KARAF-2791
          Hide
          Jean-Baptiste Onofré added a comment -

          Thanks for the update. I'm adding itests on the karaf-maven-plugin to validate and fix the behaviour.

          Show
          Jean-Baptiste Onofré added a comment - Thanks for the update. I'm adding itests on the karaf-maven-plugin to validate and fix the behaviour.
          Hide
          Jens Kleemann added a comment -

          can be easily reproduced with openjpa (enterprise-) feature. It contains 2.2.2 and 2.3.0. If your feature references openjpa/2.2.2 the openjpa/2.3.0 gets placed into the assembly...

          Show
          Jens Kleemann added a comment - can be easily reproduced with openjpa (enterprise-) feature. It contains 2.2.2 and 2.3.0. If your feature references openjpa/2.2.2 the openjpa/2.3.0 gets placed into the assembly...
          Hide
          Ioannis Canellos added a comment -

          Nice finding!

          From a quick glance at the source, I think that you are right. When resolving transitive features the version is not taken into account.

          Show
          Ioannis Canellos added a comment - Nice finding! From a quick glance at the source, I think that you are right. When resolving transitive features the version is not taken into account.
          Hide
          Alexey Markevich added a comment -

          demo project

          Show
          Alexey Markevich added a comment - demo project

            People

            • Assignee:
              Jean-Baptiste Onofré
              Reporter:
              Alexey Markevich
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development