You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "npen (via GitHub)" <gi...@apache.org> on 2026/09/11 11:24:42 UTC
[I] Maven 3.9 resolver ignores proxy authentification system properties proxyUser and proxyPassword [maven-resolver]
npen opened a new issue, #2139:
URL: https://github.com/apache/maven-resolver/issues/2139
### Affected version
3.9
### Bug description
Following issue https://github.com/apache/maven-resolver/issues/997 resolution, it is possible to use aether.connector.http.useSystemProperties=true to allow the use of proxyHost and proxyPort system properties.
However, the call to setDefaultCredentialsProvider which happens just before will lead to completely ignore the related authentication properties https.proxyUser and https.proxyPassword.
I know using system properties is discouraged, here is my use-case:
Running Claude Code in sandboxed mode on MacOS X, command run by Claude has to go through a proxy whose parameters (host, port, user and password) are available in environment variable HTTPS_PROXY. It's worth to note that those parameters are not fixed and change on every sessions.
In the end, Claude ends up debugging maven commands, and duplicate settings.xml with proxy config added, and additional parameters to mvn commands.
I tried to setup a simple .mavenrc file to declare correct MAVEN_OPTS dynamically based on HTTPS_PROXY variable. This works fine, except that https.proxyUser and https.proxyPassword are completely ignored, leading to HTTP 407 errors.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Maven 3.9 resolver ignores proxy authentification system properties proxyUser and proxyPassword [maven-resolver]
Posted by "slachiewicz (via GitHub) via issues" <is...@maven.apache.org>.
slachiewicz closed issue #2139: Maven 3.9 resolver ignores proxy authentification system properties proxyUser and proxyPassword
URL: https://github.com/apache/maven-resolver/issues/2139
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Maven 3.9 resolver ignores proxy authentification system properties proxyUser and proxyPassword [maven-resolver]
Posted by "slachiewicz (via GitHub) via issues" <is...@maven.apache.org>.
slachiewicz commented on issue #2139:
URL: https://github.com/apache/maven-resolver/issues/2139#issuecomment-7060264629
Fixed by [PR #2148](https://github.com/apache/maven-resolver/pull/2148) (2.0.25) on master and [PR #2149](https://github.com/apache/maven-resolver/pull/2149) on the 1.9.x branch, pending the next 1.9.x release. Closing; please retest with a 1.9.x build once that release is available.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Maven 3.9 resolver ignores proxy authentification system properties proxyUser and proxyPassword [maven-resolver]
Posted by "goutamadwant (via GitHub)" <gi...@apache.org>.
goutamadwant commented on issue #2139:
URL: https://github.com/apache/maven-resolver/issues/2139#issuecomment-5691792630
@gnodet I reproduced the HTTP 407 failure on both current master and Resolver 1.9.x and prepared corresponding fixes:
#2148
#2149
They honor matching system proxy credentials under the existing opt-in, preserve explicit Resolver authentication, and keep proxy credentials separate from repository authentication. Redirects that change proxy or become direct clear the system-derived proxy credentials. Let me know if you have any comments / suggestions. thanks!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Maven 3.9 resolver ignores proxy authentification system properties proxyUser and proxyPassword [maven-resolver]
Posted by "npen (via GitHub)" <gi...@apache.org>.
npen commented on issue #2139:
URL: https://github.com/apache/maven-resolver/issues/2139#issuecomment-5633818984
Sorry, this is Maven 3.9.16, so I guess it's Resolver 1.x lineage.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Maven 3.9 resolver ignores proxy authentification system properties proxyUser and proxyPassword [maven-resolver]
Posted by "cstamas (via GitHub)" <gi...@apache.org>.
cstamas commented on issue #2139:
URL: https://github.com/apache/maven-resolver/issues/2139#issuecomment-5633790468
Maven 3.x versions use Resolver 1.x lineage (and 3.10 and above use Resolver 2.x lineage). Please specify _which exactly_ Maven 3.9.? version is affected (or is all like `[3.9.0,3.10.0)`)? Thanks
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org