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

karaf-maven-plugin is ignoring the feature version and installing all available versions of given feature in the repository.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0.1
    • Fix Version/s: 4.0.3
    • Component/s: karaf
    • Labels:
      None

      Description

      To Reproduce:
      a karaf-maven-plugin with only feature jpa/2.1.0 is installing both jpa 2.1.0 and 1.0.4 features (from enterprise repository).

      <configuration>
          <startupFeatures/>
          <bootFeatures>
                 <feature>jpa/2.1.0</feature>
          </bootFeatures>
         <installedFeatures/>
      </configuration>
      

      In the console, one can see the following log, which is showing both features are being installed:

      [INFO] Feature jpa is defined as a boot feature
      [INFO] == Installing artifact mvn:org.apache.felix/org.apache.felix.coordinator/1.0.0
      [INFO] == Installing artifact mvn:org.apache.aries.jpa/org.apache.aries.jpa.blueprint/2.1.0
      [INFO] == Installing artifact mvn:org.apache.aries.jpa/org.apache.aries.jpa.container/2.1.0
      [INFO] == Installing artifact mvn:org.apache.aries.jpa/org.apache.aries.jpa.api/2.1.0
      [INFO] == Installing artifact mvn:org.apache.aries.jpa/org.apache.aries.jpa.support/2.1.0
      [INFO] Feature jpa is defined as a boot feature
      [INFO] == Installing artifact mvn:org.apache.aries.jpa/org.apache.aries.jpa.blueprint.aries/1.0.4
      [INFO] == Installing artifact mvn:org.apache.aries/org.apache.aries.util/1.1.0
      [INFO] == Installing artifact mvn:org.apache.aries.jpa/org.apache.aries.jpa.api/1.0.2
      [INFO] == Installing artifact mvn:org.apache.aries.jpa/org.apache.aries.jpa.container/1.0.2
      [INFO] == Installing artifact mvn:org.apache.aries.jpa/org.apache.aries.jpa.container.context/1.0.4
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                chris@die-schneider.net Christian Schneider
                Reporter:
                m.h.shams@gmail.com Mohammad Shamsi
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: