Maven
  1. Maven
  2. MNG-4561

[regression] network settings are not applied to repositories from plugin dependencies

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.0-alpha-6
    • Fix Version/s: 3.0-alpha-7
    • Component/s: None
    • Labels:
      None
    • Environment:

      Description

      See also MNG-4413, MNG-4489

      For some artifacts Maven ignores the proxy defined in the per user settings.xml and tries to connect directly which results in a connection timeout.

      I will attempt to create a simplified test case but meanwhile.

      1) install a web proxy
      2) install a nexus repo manager
      3) configure your machine so it can not see the repo manager.
      4) add central and sonatype forge to the repo manager and configre repo manager and settings.xml for proxy and mirror.
      5) delete local repository

      6) checkout http://svn.sonatype.org/nexus-plugins/trunk/nexus-archetype-plugin/
      7) mvn package.

      The build will fail.
      delete the metadata for the associated failed files in the local repo

      run mvn -e package
      in another shell run netstat -an
      observe that the machine is trying to connect to repository.sonatype.org (63.246.20.88:80)

      observe that the stack traces the socket is a plain socket and it is a plain connect not a proxy connect.

        Issue Links

          Activity

          James Nord created issue -
          Hide
          Benjamin Bentmann added a comment -

          Could you please attach a complete debug log of your build? In particular, I'm interested in some more context around the resolution error and the full exception stack trace of it. Thanks.

          Show
          Benjamin Bentmann added a comment - Could you please attach a complete debug log of your build? In particular, I'm interested in some more context around the resolution error and the full exception stack trace of it. Thanks.
          Benjamin Bentmann made changes -
          Field Original Value New Value
          Fix Version/s 3.0-alpha-7 [ 16087 ]
          Benjamin Bentmann made changes -
          Link This issue relates to MNG-4489 [ MNG-4489 ]
          Benjamin Bentmann made changes -
          Summary Proxies not handled correctly [regression] network settings are not applied to repositories from plugin dependencies
          Hide
          Benjamin Bentmann added a comment -

          Fixed in r909830.

          Show
          Benjamin Bentmann added a comment - Fixed in r909830 .
          Benjamin Bentmann made changes -
          Resolution Fixed [ 1 ]
          Assignee Benjamin Bentmann [ bentmann ]
          Status Open [ 1 ] Closed [ 6 ]
          Benjamin Bentmann made changes -
          Status Closed [ 6 ] Reopened [ 4 ]
          Resolution Fixed [ 1 ]
          Benjamin Bentmann made changes -
          Link This issue is related to MNG-4528 [ MNG-4528 ]
          Hide
          Benjamin Bentmann added a comment -

          Completed fix in r909934.

          The particular project mentioned here, nexus-archetype-plugin, suffered actually from two issues. The first issue was a straight forward bug where the proxy settings were not passed to the wagon. The second issue was that an old version of the HTTP wagon was being used which completey ignored proxy settings (WAGON-236). This old wagon version was pulled in via transitive dependencies of a build extension and basically duplicates MNG-4528.

          Show
          Benjamin Bentmann added a comment - Completed fix in r909934 . The particular project mentioned here, nexus-archetype-plugin, suffered actually from two issues. The first issue was a straight forward bug where the proxy settings were not passed to the wagon. The second issue was that an old version of the HTTP wagon was being used which completey ignored proxy settings ( WAGON-236 ). This old wagon version was pulled in via transitive dependencies of a build extension and basically duplicates MNG-4528 .
          Benjamin Bentmann made changes -
          Status Reopened [ 4 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 08:49:45 UTC 2015 [ 1428223785911 ]
          Mark Thomas made changes -
          Workflow jira [ 12714857 ] Default workflow, editable Closed status [ 12754513 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 21:45:26 UTC 2015 [ 1428270326204 ]
          Mark Thomas made changes -
          Workflow jira [ 12952448 ] Default workflow, editable Closed status [ 12989798 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Closed Closed
          3d 21h 55m 1 Benjamin Bentmann 13/Feb/10 08:27
          Closed Closed Reopened Reopened
          1h 48m 1 Benjamin Bentmann 13/Feb/10 10:16
          Reopened Reopened Closed Closed
          1d 7h 13m 1 Benjamin Bentmann 14/Feb/10 17:29

            People

            • Assignee:
              Benjamin Bentmann
              Reporter:
              James Nord
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development