[ https://issues.apache.org/jira/browse/MNG-5457?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15375720#comment-15375720 ]
Rajiv Jain edited comment on MNG-5457 at 7/13/16 8:46 PM: ---------------------------------------------------------- [~michael-o] - I have been trying to debug this issue but having some problems. First of all, I am trying to find out whether the AbstractMavenTransferListener transferInitiated() what are the value of the resource.getResourceName(). Please see below: @Override public void transferInitiated( TransferEvent event ) { String type = event.getRequestType() == TransferEvent.RequestType.PUT ? "Uploading" : "Downloading"; TransferResource resource = event.getResource(); out.println( type + ": " + resource.getRepositoryUrl() + resource.getResourceName() ); } >From the description from the above and from what I have seen I have always >seen: Downloading: URL. I have never seen the output of the >resource.getResourceName(). Could you give any insight to this? How can I actually debug? I have got far as debugging the MavenCli.java, but I don't know what properties etc need to be set. Thanks. was (Author: rajivpj): [~michael-o] - I have been trying to debug this issue but having some problems. First of all, I am trying to find out whether the AbstractMavenTransferListener transferInitiated() what are the value of the resource.getResourceName(). Please see below: @Override public void transferInitiated( TransferEvent event ) { String type = event.getRequestType() == TransferEvent.RequestType.PUT ? "Uploading" : "Downloading"; TransferResource resource = event.getResource(); out.println( type + ": " + resource.getRepositoryUrl() + resource.getResourceName() ); } >From the description from the above and from what I have seen I have always >seen: Downloading: URL. I have never seen the output of the >resource.getResourceName(). Could you give any insight to this? How can I actually debug? I have got far as debugging the MavenCli.java, but I don't know what properties etc need to be set. > show repository id when downloading > ----------------------------------- > > Key: MNG-5457 > URL: https://issues.apache.org/jira/browse/MNG-5457 > Project: Maven > Issue Type: Improvement > Components: General > Affects Versions: 3.0.5 > Reporter: Hervé Boutemy > Fix For: 3.x / Backlog > > Attachments: 2016-05-18_204749.png > > > actually, the log only show the url being downloaded: > {noformat}Downloading: > http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-plugins/23/maven-plugins-23.pom > Downloaded: > http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-plugins/23/maven-plugins-23.pom > (9 KB at 98.7 KB/sec){noformat} > nothing is told about the repository id. > But as shown in MNG-5181, repository id is an important information since it > is stored in local repository to limit artifact scope: it would be useful > IMHO to display the id in the output, like > {noformat}Downloading from central: > http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-plugins/23/maven-plugins-23.pom > Downloaded from central: > http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-plugins/23/maven-plugins-23.pom > (9 KB at 98.7 KB/sec){noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)