Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.1
    • Fix Version/s: 2.2
    • Component/s: dependencies
    • Labels:
      None
    • Number of attachments :
      2

      Description

      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.

      1. log.log
        193 kB
        Dominique Jean-Prost
      2. MPIR-150.patch
        0.8 kB
        Philipp Berger

        Issue Links

          Activity

          Hide
          Prashant Bhate added a comment -

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

          it would be nice if url.openStream();

          InputStream in =null;
          
          try
          {
            in = url.openStream();
          

          can be replaced with

          //Define constant TIMEOUT with pre set timeout
           
            InputStream in =null;
          
            try
            {
             URLConnection conn = url.openConnection();
             conn.setConnectTimeout(TIMEOUT);
             conn.setReadTimeout(TIMEOUT);
             in = conn.getInputStream();
          

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

          Show
          Prashant Bhate added a comment - Thanks a lot for this patch, Now site deployment would be much quicker. it would be nice if url.openStream(); InputStream in = null ; try { in = url.openStream(); can be replaced with //Define constant TIMEOUT with pre set timeout InputStream in = null ; try { URLConnection conn = url.openConnection(); conn.setConnectTimeout(TIMEOUT); conn.setReadTimeout(TIMEOUT); in = conn.getInputStream(); url.openStream(); is a blocking call that makes caller wait forever
          Hide
          Olivier Lamy added a comment -

          please open a new issue for this.
          Thanks.

          Show
          Olivier Lamy added a comment - please open a new issue for this. Thanks.
          Hide
          Prashant Bhate added a comment -

          Hi,
          Raised http://jira.codehaus.org/browse/MPIR-199

          Cheers,
          Prashant Bhate

          Show
          Prashant Bhate added a comment - Hi, Raised http://jira.codehaus.org/browse/MPIR-199 Cheers, Prashant Bhate
          Hide
          Dominique Jean-Prost added a comment -

          Well, I think I still meet the same problem.

          My settings.xml :

          <mirrors>
          		<mirror>
          			<mirrorOf>*</mirrorOf>
          			<url>http://vsrigel:7001/archiva/repository/global</url>
          			<id>everything-mirror</id>
          		</mirror>
          		
          	</mirrors>
          

          when I execute "c:\bin\apache-maven-2.2.1\bin\mvn project-info-reports:dependencies", the plugin hangs twice and displays :

          [WARNING] The repository url 'http://repo1.maven.org/maven2' is invalid - Repository 'central' will be blacklisted.
          [WARNING] The repository url 'http://svn.apache.org/maven-snapshot-repository' is invalid - Repository 'apache.snapshots' will be blacklisted.

          I also get tons of
          [DEBUG] Using mirror: http://vsrigel:7001/archiva/repository/global (id: everything-mirror)
          [DEBUG] Using Wagon implementation lightweight from default mapping for protocol http
          [DEBUG] Checking for pre-existing User-Agent configuration.
          [DEBUG] Adding User-Agent configuration.
          http://vsrigel:7001/archiva/repository/global - Session: Opened
          http://vsrigel:7001/archiva/repository/global - Session: Disconnecting
          http://vsrigel:7001/archiva/repository/global - Session: Disconnected

          Please find my execution log as an attachment.
          Should this bug be reopened ? Or am I wrong ?

          Thank you
          Dom

          Show
          Dominique Jean-Prost added a comment - Well, I think I still meet the same problem. My settings.xml : <mirrors> <mirror> <mirrorOf> * </mirrorOf> <url> http://vsrigel:7001/archiva/repository/global </url> <id> everything-mirror </id> </mirror> </mirrors> when I execute "c:\bin\apache-maven-2.2.1\bin\mvn project-info-reports:dependencies", the plugin hangs twice and displays : [WARNING] The repository url 'http://repo1.maven.org/maven2' is invalid - Repository 'central' will be blacklisted. [WARNING] The repository url 'http://svn.apache.org/maven-snapshot-repository' is invalid - Repository 'apache.snapshots' will be blacklisted. I also get tons of [DEBUG] Using mirror: http://vsrigel:7001/archiva/repository/global (id: everything-mirror) [DEBUG] Using Wagon implementation lightweight from default mapping for protocol http [DEBUG] Checking for pre-existing User-Agent configuration. [DEBUG] Adding User-Agent configuration. http://vsrigel:7001/archiva/repository/global - Session: Opened http://vsrigel:7001/archiva/repository/global - Session: Disconnecting http://vsrigel:7001/archiva/repository/global - Session: Disconnected Please find my execution log as an attachment. Should this bug be reopened ? Or am I wrong ? Thank you Dom
          Hide
          Dominique Jean-Prost added a comment -

          log that shows bug is still there in org.apache.maven.plugins:maven-project-info-reports-plugin:2.2:dependencies ?

          Show
          Dominique Jean-Prost added a comment - log that shows bug is still there in org.apache.maven.plugins:maven-project-info-reports-plugin:2.2:dependencies ?

            People

            • Assignee:
              Olivier Lamy
              Reporter:
              Brian Fox
            • Votes:
              16 Vote for this issue
              Watchers:
              19 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: