You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Steve Loughran <st...@apache.org> on 2006/02/01 14:15:54 UTC

Re: Specify multiple proxies

Brett Porter wrote:
> Thomas Recloux wrote:
>> I see two solutions:
>> - Keeping only one active proxy and add a way to specify multiple
>> protocols by proxy.
>> - Modify the Settings and DefaultMaven objects to add one active proxy
>> server by protocol.
>>
>> What do you think of this? If you choose one of theses solutions, I
>> can post the patch.
> 
> I think they are both good solutions and maybe could be used together.
> I'd start with the second one as it doesn't requires model changes and
> can be included in Maven 2.0.3.
> 
> I'd also special case https to use the http proxy if none is defined.
> 

Proxy setup in java is a real pain. Personally I'd like apps on my 
laptop to try and use a proxy if nslookup fails then skip it if not, but 
try explaining that to Java, even Java1.5. And don't even mention the 
autoproxy stuff in Java1.5 as it doesn't work. My laptop is clever 
enough to change IE's proxy settings as it roams (see 
http://www.hpl.hp.com/techreports/2001/HPL-2001-158.pdf ) , and yet the 
java 5 proxy stuff doesnt pick up even static things.

My planned workaround for all this is to actually host a local proxy and 
route everything through there, with that separate program containing 
all the logic for proxy binding hosted there -it'd contain the 
intelligence to choose proxy based on WLAN ID, IP address &c,  and have 
a single override point.

-steve

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org