maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Klug, Johannes" <johannes.k...@logica.com>
Subject RE: HTTP and HTTPS proxy
Date Tue, 07 Jun 2011 12:44:08 GMT
I did, it picked the first one marked as active, and disregarded the
second.
When I swapped http and http, HTTPS downloads worked, while HTTP stopped
working.

> -----Original Message-----
> From: anders.g.hammar@gmail.com [mailto:anders.g.hammar@gmail.com] On
> Behalf Of Anders Hammar
> Sent: 07 June 2011 13:36
> To: Maven Users List
> Subject: Re: HTTP and HTTPS proxy
> 
> Did you try add yet another proxy element for "https" protocol?
> 
> /Anders
> 
> On Tue, Jun 7, 2011 at 13:07, Klug, Johannes
> <johannes.klug@logica.com>wrote:
> 
> > Dear list,
> >
> >
> >
> > I currently have my proxy set up in settings.xml like so:
> >
> >
> >
> > <settings>
> >
> >  <proxies>
> >
> >   <proxy>
> >
> >      <active>true</active>
> >
> >      <protocol>http</protocol>
> >
> >     <host>proxy </host>
> >
> >      <port>80</port>
> >
> >    </proxy>
> >
> > </settings>
> >
> >
> >
> > This does work for HTTP repositories, but unfortunately it does not
> work
> > for HTTPs ones, such as Sonatype OSS.
> >
> >
> >
> > I can work around this by specifying the relevant Java system
> > properties, like so:
> >
> > mvn install -Dhttps.proxyHost=proxy -Dhttps.proxyPort=80
> >
> >
> >
> > I'd rather have it all in my settings.xml.
> >
> > Do you have an idea how to do this?
> >
> >
> >
> > Kind regards,
> >
> > Johannes
> >
> >
> >
> >
> >
> > Think green - keep it on the screen.
> >
> > This e-mail and any attachment is for authorised use by the intended
> > recipient(s) only. It may contain proprietary material, confidential
> > information and/or be subject to legal privilege. It should not be
> copied,
> > disclosed to, retained or used by, any other party. If you are not
an
> > intended recipient then please promptly delete this e-mail and any
> > attachment and all copies and inform the sender. Thank you.
> >
> >

Think green - keep it on the screen.

This e-mail and any attachment is for authorised use by the intended recipient(s) only. It
may contain proprietary material, confidential information and/or be subject to legal privilege.
It should not be copied, disclosed to, retained or used by, any other party. If you are not
an intended recipient then please promptly delete this e-mail and any attachment and all copies
and inform the sender. Thank you.



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


Mime
View raw message