maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Prashant Bhate (JIRA)" <j...@codehaus.org>
Subject [jira] Commented: (MPIR-150) the dependency report ignores mirrors
Date Tue, 13 Jul 2010 15:15:33 GMT

    [ http://jira.codehaus.org/browse/MPIR-150?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=228186#action_228186
] 

Prashant  Bhate commented on MPIR-150:
--------------------------------------

Thanks a lot for this patch, Now site deployment would be much quicker.

it would be nice if  {{url.openStream();}} 

{code}
InputStream in =null;

try
{
  in = url.openStream();
{code}

can be replaced with 
{code}
//Define constant TIMEOUT with pre set timeout
 
  InputStream in =null;

  try
  {
   URLConnection conn = url.openConnection();
   conn.setConnectTimeout(TIMEOUT);
   conn.setReadTimeout(TIMEOUT);
   in = conn.getInputStream();
{code}

{{url.openStream();}} is a blocking call that makes caller wait forever

> the dependency report ignores mirrors
> -------------------------------------
>
>                 Key: MPIR-150
>                 URL: http://jira.codehaus.org/browse/MPIR-150
>             Project: Maven 2.x Project Info Reports Plugin
>          Issue Type: Bug
>          Components: dependencies
>    Affects Versions: 2.1.1
>            Reporter: Brian Fox
>            Assignee: Olivier Lamy
>             Fix For: 2.2
>
>         Attachments: MPIR-150.patch
>
>
> The dependencies report takes forever and running debug i can see it's hitting the same
repos over and over and bypassing my repository manager.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message