Uploaded image for project: 'Maven Dependency Plugin'
  1. Maven Dependency Plugin
  2. MDEP-579

Regression: get goal does not pass server credentials to BasicRepositoryConnector

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.0.0, 3.0.1
    • Fix Version/s: 3.1.2
    • Component/s: get
    • Labels:

      Description

      The get goal does not pass the server credentials from settings.xml to the BasicRepositoryConnector in version 3.0.1 (and, presumably 3.0.0), resulting in NotAuthorized errors when resolving artifacts against repositories that require authentication. It works correctly in version 2.9.

      Background: I discovered this in the course of debugging a Jenkins job in which I'm using the get and copy goals from the command line (with no POM) to download artifacts to deploy. After spending several hours thinking that Jenkins was not properly configuring settings.xml, I noticed from the Maven debug output that the credentials were being passed when resolving the maven-dependency-plugin and its dependencies, but not being passed when resolving the artifact I requested. On a hunch I downgraded from maven-dependency-plugin version 3.0.1 to 2.9, and suddenly everything magically worked.

        Attachments

          Activity

            People

            • Assignee:
              rfscholte Robert Scholte
              Reporter:
              reggert1980 Richard W. Eggert II
            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 40m
                40m