[ https://jira.codehaus.org/browse/MPIR-244?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=298177#comment-298177 ]
Herve Boutemy edited comment on MPIR-244 at 5/8/12 4:39 PM: ------------------------------------------------------------ after research, this is due to the way Maven 3 [injects mirrors in RepositorySystem.injectMirror(...)|http://maven.apache.org/ref/3.0/maven-core/apidocs/org/apache/maven/repository/RepositorySystem.html#injectMirror(java.util.List, java.util.List)], ie replace artifact repositories with their mirrors. Initial repositories are still available through [ArtifactRepository.getMirroredRepositories()|http://maven.apache.org/ref/3.0.3/maven-artifact/apidocs/org/apache/maven/artifact/repository/ArtifactRepository.html#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 was (Author: hboutemy): after research, this is due to the way Maven 3 [injects mirrors in LegacyRepositorySystem.injectMirror(...)|http://maven.apache.org/ref/3.0.4/apidocs/org/apache/maven/repository/legacy/LegacyRepositorySystem.html#injectMirror(java.util.List, java.util.List)], ie replace artifact repositories with their mirrors. Initial repositories are still available through [ArtifactRepository.getMirroredRepositories()|http://maven.apache.org/ref/3.0.4/apidocs/org/apache/maven/artifact/repository/ArtifactRepository.html#getMirroredRepositories()] 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 > With Maven 3, "Dependency Repository Locations" in dependencies report shows > my local repository manager id and url instead of public repository info > ----------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: MPIR-244 > URL: https://jira.codehaus.org/browse/MPIR-244 > Project: Maven 2.x Project Info Reports Plugin > Issue Type: Bug > Components: dependencies > Affects Versions: 2.4 > Reporter: Herve Boutemy > > With Maven 2, "Dependency Repository Locations" reports "central" references, > for example, but with maven 3, my local repository manager is shown, with it > "http://localhost:8081/xxx" url > Added a test-case in > [r1335705|http://svn.apache.org/viewvc?rev=1335705&view=rev] -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira