Maven 2 & 3
  1. Maven 2 & 3
  2. MNG-3477

Authentication failures on dependency download aren't reported

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.8
    • Fix Version/s: 3.0-beta-1
    • Component/s: Dependencies
    • Labels:
      None
    • Number of attachments :
      0

      Description

      We have a Maven proxy server (using Proximity) that requires authentication. Users store their username and passwords in settings.xml. If the login information is incorrect, they are not informed the the problem is due to bad credentials, just that the dependencies are missing. -e and -X don't add anything useful.

      This is true for both dependencies and plugins.

        Issue Links

          Activity

          Hide
          ricoh added a comment -

          Hi, is there any update or a schedule? We have the same problem with Nexus, but i think its a Maven problem and its a major lack for us.
          If you sniff the stream, you will see the correct error message

          GET /nexus/content/groups/public/junit/junit/3.8.1/junit-3.8.1.jar HTTP/1.1
          Accept-Encoding: gzip
          Pragma: no-cache
          User-Agent: Java/1.6.0_13
          Host: ****:8081
          Accept: text/html, image/gif, image/jpeg, ; q=.2, */; q=.2
          Connection: keep-alive

          HTTP/1.1 401 Unauthorized
          WWW-Authenticate: BASIC realm="Sonatype Nexus Repository Manager"
          Content-Length: 0
          Server: Jetty(6.1.11)

          Thanks for your help

          Show
          ricoh added a comment - Hi, is there any update or a schedule? We have the same problem with Nexus, but i think its a Maven problem and its a major lack for us. If you sniff the stream, you will see the correct error message GET /nexus/content/groups/public/junit/junit/3.8.1/junit-3.8.1.jar HTTP/1.1 Accept-Encoding: gzip Pragma: no-cache User-Agent: Java/1.6.0_13 Host: ****:8081 Accept: text/html, image/gif, image/jpeg, ; q=.2, */ ; q=.2 Connection: keep-alive HTTP/1.1 401 Unauthorized WWW-Authenticate: BASIC realm="Sonatype Nexus Repository Manager" Content-Length: 0 Server: Jetty(6.1.11) Thanks for your help
          Hide
          Benjamin Bentmann added a comment -

          For Maven 2.x, this was already fixed as per MNG-3794. Fixed in r929299 for 3.x now.

          Show
          Benjamin Bentmann added a comment - For Maven 2.x, this was already fixed as per MNG-3794 . Fixed in r929299 for 3.x now.

            People

            • Assignee:
              Benjamin Bentmann
              Reporter:
              Justin Edelson
            • Votes:
              3 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: