Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-9848

The ArtifactManager should handle SNAPSHOT dependencies exactly like Maven

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • Feature Model 1.2.10
    • None
    • Feature Model
    • None

    Description

      When a feature provides a SNAPSHOT dependency by using the artifact's specific version generated by Nexus (e.g. 1.0.0-SNAPSHOT -> 1.0.0-20201021.121222-1), then the ArtifactManager fails to correctly find the dependency.

      Assuming a definition like:

      {
            "id":"org.myorg:mybundle:1.0.0-20201021.121222-1",
            "start-order":"20"
      }
      

      Maven would download / solve org/myorg/mybundle/1.0.0-SNAPSHOT/mybundle-1.0.0-20201021.121222-1.jar, whereas the ArtifactManager would try to download / solve
      org/myorg/mybundle/1.0.0-20201021.121222-1/mybundle-1.0.0-20201021.121222-1.jar.

      IMO, when working with Maven Repositories / Artifacts, the ArtifactManager should use Maven components for correctly resolving the artifacts the same way Maven would.

      Attachments

        Activity

          People

            Unassigned Unassigned
            radu Radu Cotescu
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: