Btw (apart from the fact that kind of question should better be asked on
users ML), it seems a bit weird to me at first sight you're actually having
to configure both a nexus server, and a proxy.

For instance, we exclusively use a nexus server to do the actual
proxying(+hosting) of anything that maven has to download inside the
company. Not sure what's your use case to need to not go through your maven
repo manager any time.

My 2 cents.


2014-02-13 8:17 GMT+01:00 Anders Hammar <[email protected]>:

> It would be great if you could file a JIRA ticket so that the docs can be
> fixed, see [1]!
> Use the website JIRA project.
>
> /Anders
>
> [1] http://maven.apache.org/issue-tracking.html
>
>
>
> On Thu, Feb 13, 2014 at 12:05 AM, Barnett, Ian <[email protected]>
> wrote:
>
> > I develop behind a proxy.  Some of our servers sit behind that proxy as
> > well, including our Nexus Repository.  I have configured my settings.xml
> to
> > point to our proxy but to ignore the hosts that are behind that proxy.
>  If
> > I use a comma-delimited list in my nonProxyHosts, Maven seems to ignore
> > that list and apply the proxy to those hosts as well.  If I use a
> > pipe-delimited list in my nonProxyHosts, everything works great and Maven
> > does NOT try to apply the proxy to those hosts.
> >
> > According to this document only pipes are acceptable as delimiters, which
> > is what I observed:
> > https://maven.apache.org/guides/mini/guide-proxies.html
> >
> > According to this document either pipes or commas are acceptable as
> > delimiters which is incorrect according to my observation:
> > https://maven.apache.org/settings.html (Proxies header)
> >
> > This is an example of the proxies block in my settings.xml file that does
> > not work.  When Maven needs to hit 123.456.789.111 or my.nexus.host, it
> > applies the proxy to it.
> >
> >   <proxies>
> >
> >     <proxy>
> >
> >       <id>My Proxy</id>
> >
> >       <active>true</active>
> >
> >       <protocol>http</protocol>
> >
> >       <username></username>
> >
> >       <password></password>
> >
> >       <host>my.proxy.com</host>
> >
> >       <port>80</port>
> >
> >
> > <nonProxyHosts>localhost,123.456.789.*,my.nexus.host</nonProxyHosts>
> >
> >     </proxy>
> >
> >   </proxies>
> >
> > This example WORKS.  Proxy is ignored for any requests to 123.456.789.111
> > or my.nexus.host, etc.
> >
> >
> >   <proxies>
> >
> >     <proxy>
> >
> >       <id>My Proxy</id>
> >
> >       <active>true</active>
> >
> >       <protocol>http</protocol>
> >
> >       <username></username>
> >
> >       <password></password>
> >
> >       <host>my.proxy.com</host>
> >
> >       <port>80</port>
> >
> >
> > <nonProxyHosts>localhost|123.456.789.*|my.nexus.host</nonProxyHosts>
> >
> >     </proxy>
> >
> >   </proxies>
> >
> > Environment:
> > Maven 3.1.1
> > Mac OS-X 10.9
> >
> > Also reproduced this issue on:
> >
> > Apache Maven 3.0.4
> >
> > Ubuntu 11.04
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> >
> >
>
> --
> Baptiste <Batmat> MATHUS - http://batmat.net
> Sauvez un arbre,
> Mangez un castor ! nbsp;!
>

Reply via email to