apache / apache/maven-dependency-plugin

[MDEP-926] proxy settings ignored for dependencies

Open
#1,425 19 comments 2 reactions 0 assignees View on GitHub
bug priority:major
Dominant language
Java
Stars
175
Forks
196
Avg merge
19h 30m
Merged PRs (30d)
5

Description

**[Patrick Mackinlay](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=JIRAUSER304196)** opened **[MDEP-926](https://issues.apache.org/jira/browse/MDEP-926?redirect=false)** and commented

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:**
- [image-2024-04-23-12-02-38-218.png](https://issues.apache.org/jira/secure/attachment/13068371/image-2024-04-23-12-02-38-218.png) (_1.11 MB_)
- [settings.xml](https://issues.apache.org/jira/secure/attachment/13068373/settings.xml) (_403 bytes_)

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the failure with Maven 3.9.6, the minimal settings.xml proxy entry, and the dependency:get command after clearing the local artifact; compare it with Maven 3.9.2. Investigate why proxy settings apply to plugins but not dependencies, and consider the issue done when dependency downloads honor the configured proxy again.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.