Closed ops4j-issues closed 10 months ago
Achim Nierbeck commented
are you sure this is not a regression from PAXURL-286 ?
Jonathan Fortin commented
Yes I am. I don't have any space in my user's folder and I see the mirror configuration getting loaded by the MavenSettingBuilder org.ops4j.pax.url.mvn.internal.config.MavenConfigurationImpl at line #550.
Achim Nierbeck commented
Added a new test where just a
<mirrorOf>*</mirrorOf>
is contained. Works without issue, so must be related to something else.
Jonathan Fortin commented
Thank you Achim for look into this bug. I posted the bug here thinking it was aether but I might have not provided enough information. The mirrorOf element in my configuration file is retrieved from my settings by the MavenSettingsBuilder. The problem arise when pax-exam ask aether to resolve an external dependency. The call is never routed to my mirrorOf server but it is directly routed to the fallback server (https://github.com/ops4j/org.ops4j.pax.url/blob/eef0c9142aa0b9e1f59182c46f4320664faeefa9/pax-url-aether/src/main/java/org/ops4j/pax/url/mvn/internal/config/MavenConfigurationImpl.java#L562). I guess it's pretty hard to get a good test running for this bug unless you check the ip of the endpoint and compare it with the ip in the settings.xml. I'm not familliar enough with this project yet to identify the root of the problem.
Works already, but I also reviewed it when upgrading Maven Resolver with #417
Jonathan Fortin created PAXURL-288
The use of <mirrorOf>*</mirrorOf> statement in the maven's settings.xml configuration file is ignored causing dependencies to not be downloaded.
We are running pax-exam tests with a karaf container. Dependencies resolved at run time to be downloaded by the aether resolver fail.
Affects: 2.2.0 Votes: 1, Watches: 3