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

proxy settings ignored for dependencies

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      The proxy settings are ignored for dependencies in maven 3.9.6 (working in 3.9.2).

      On a machine with no direct internet access, if you clear your local repository with a command like:

      rm -rf ~/.m2/repository/org/apache/maven/maven-core/2.2.1

      and then try and download the dependency:

      mvn dependency:get -DgroupId=org.apache.maven -DartifactId=maven-core -Dversion=2.2.1

       

      It will fail. The proxy settings are ignored. However, it should be noted that for plugins they are used, its only for dependencies that they are ignored.

      maven version 3.9.2 works, so looks like this was introduced in 3.9.3 probably when the dependency plugin version was upgraded.

       

      I used a minimal settings.xml with just one proxy entry.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            patrick93 Patrick Mackinlay

            Dates

              Created:
              Updated:

              Slack

                Issue deployment