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: [email protected] [mailto:[email protected]] 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 > <[email protected]>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: [email protected] For additional commands, e-mail: [email protected]
