Skip to content

Commit d4bd991

Browse files
iils-hwellmanngnodet
authored andcommitted
[MRESOLVER-571] Import o.e.aether packages with the exact same version
The documentation states that only maven-resolver artifacts of the exact same version should be used together. With this change all org.eclipse.aether* packages are now imported with a strict version range of 'org.eclipse.aether*;version="[@Version,@Version]"' Fixes https://issues.apache.org/jira/browse/MRESOLVER-571
1 parent d0edd79 commit d4bd991

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pom.xml

+6-1
Original file line numberDiff line numberDiff line change
@@ -614,10 +614,15 @@
614614
*.impl.*;x-internal:=true, \
615615
*.internal.*;x-internal:=true, \
616616
*
617-
# Mark optional Maven dependencies as optional
617+
# Ensure all maven-resolver packages of exactly the same version are imported
618+
# and mark optional Maven dependencies as optional.
619+
mavenResolverVersion=${versionmask;===;${version_cleanup;${project.version}}}
618620
Import-Package: \
621+
org.eclipse.aether*;version="${range;[===,===];${mavenResolverVersion}}", \
619622
javax.inject*;resolution:=optional, \
620623
*
624+
# No re-import of exported packages
625+
-noimport:=true
621626
# Reproducible build
622627
-noextraheaders: true
623628
${bnd.instructions.additions}

0 commit comments

Comments
 (0)