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

the karaf-maven-plugin features-add-to-repository goal creates fixed snapshot versions for bundles referenced via -SNAPSHOT version in a feature descriptor

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.2.3, 4.2.4
    • 4.3.0, 4.2.5
    • karaf
    • None

    Description

      We have an advanced  custom assembly, so we use the features-add-to-repository for generating the repository.

      in case there is a bundle with a snapshot version in a feature descriptor that gets downloaded as a dependency, the affected version will now generate a fixed versioned filename, which results in a failure to find the corresponding bundle at runtime:

      e. g.

      <bundle>mvn:org.example.bundles/my-bundle/1.0.0-SNAPSHOT</bundle>

      4.2.2
      org/example/bundles/my-bundle/1.0.0-SNAPSHOT/my-bundle-1.0.0-SNAPSHOT.jar

      4.2.3, 4.2.4
      org/example/bundles/my-bundle/1.0.0-SNAPSHOT/my-bundle-1.0.0-20190410.124431-31.jar

      Which results in an ArtifactNotFoundException during runtime.

       

      This might be related to the recent change in https://issues.apache.org/jira/browse/KARAF-6116

       

       

       

      Attachments

        Issue Links

          Activity

            People

              jbonofre Jean-Baptiste Onofré
              apf Andre Flakowski
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: