While looking at the access denied problem for wagon, I ran into this code line:
https://github.com/apache/maven-wagon/blob/master/wagon-providers/wagon-http/src/main/java/org/apache/maven/wagon/providers/http/AbstractHttpClientWagon.java#L740 The call uses a deprecated version of "authenticated" that regenerates the BasicHttpContext every time. The new (not deprecated) version would seem to be just Header bs = new BasicScheme().authenticate( creds, httpMethod, localContext ); (Where we add the existing localContext variable) I am a bit puzzled that the current code works with authenticated proxies at all, but this code is certainly not my domain. Is this a bug ? Kristian