Uploaded image for project: 'Maven Resolver'
  1. Maven Resolver
  2. MRESOLVER-571

Import o.e.aether packages with the exact same version in OSGi metadata

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0-alpha-11, 1.9.20
    • 2.0.0, 1.9.21
    • Resolver
    • None

    Description

      The documentation states that only maven-resolver artifacts of the exact same version should be used together:

      But currently the OSGi metadata declare version ranges for imported packages up until (excluding) the next major version:
      org.eclipse.aether;version="[1.9,2)"

      My suggestion is to reflect the requirement for a strict version alignment in the OSGi metadata and change the Package-Imports to (for example for the next 1.9.21 version):
      org.eclipse.aether;version="[1.9.21,1.9.21]"

      Of course this would make it impossible (without nasty tricks/out of the box) to break that (strong) recommendation in OSGi runtimes if unexpected circumstances would require it.

      I'm currently working on providing a PR for the }}1.9.x{{ and }}master/2.x{{ branch
       

      Attachments

        Activity

          People

            gnodet Guillaume Nodet
            HannesWellmann Hannes Wellmann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: