Description
Hannes Wellmann opened MRESOLVER-571 and commented
The documentation states that only maven-resolver artifacts of the exact same version should be used together:
-
https://maven.apache.org/resolver/api-compatibility.html#outside-of-maven
-
https://maven.apache.org/resolver/third-party-integrations.html#maven-resolver-supplier
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.xand
master/2.x branch
Affects: 1.9.20, 2.0.0-alpha-11
Remote Links:
Backported to: 1.9.21