Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.4
-
Fix Version/s: 2.5
-
Component/s: dependencies
-
Labels:None
-
Number of attachments :
Description
With Maven 2, "Dependency Repository Locations" reports "central" references, for example, but with Maven 3, my local repository manager url is shown instead ("http://localhost:8081/xxx")
Added a test-case in r1335705
Issue Links
- relates to
-
MPIR-267
With Maven 3, "Dependency Repository Locations" links artifacts with my local repository manager id and url instead of public repository info
-
after research, this is due to the way Maven 3 injects mirrors in RepositorySystem.injectMirror(...), ie replace artifact repositories with their mirrors.
Initial repositories are still available through ArtifactRepository.getMirroredRepositories() (since Maven 3.0.3)
Then instead of writing the id+url of the mirror, we should write the ids+urls of every repository hidden behind the mirror: we can't tell which repository found the dependency, but at least we show the info that is expected by the user
if someone wants to have a precise report, he should create a mirror for each repository