I do have a proxy server set in my settings.xml, which is listed below.
<settings>
<proxies>
<proxy>
<id>myproxy</id>
<active>true</active>
<protocol>http</protocol>
<host>proxy.companyname.co.nz</host>
<port>8080</port>
<username></username> <!-- none required... -->
<password></password> <!-- none required... -->
<nonProxyHosts>localhost</nonProxyHosts>
</proxy>
</proxies>
<servers>
</servers>
<mirrors>
</mirrors>
</settings>
Question:
Is there any indication in the build output that the settings.xml is
actually getting used?
I had an error in the xml that broke the build (a missing tag) and when I
added it the build worked again, so I assume it is actually getting read in.
Mark Hewett wrote:
>
> Dependencies, and plugins in this case, should download automagically,
> as you suspected. It certainly seems like something is amiss with
> your configuration. My first guess would be that Maven is having
> trouble connecting to the http://www.ibiblio.org/maven2/ site (which I
> just noticed is redirecting to
> http://mirrors.ibiblio.org/pub/mirrors/maven2/) to download the POMs
> and JARs.
>
> Are you perhaps behind a proxy server, and if so is it configured in
> your settings.xml file (more manual configuration, I'm afraid!). On
> Windows you would want a file:
>
> C:\Documents and Settings\<your userid>\.m2\settings.xml
>
> With something like the following (note, I'm not behind a proxy, so
> I've never had to actually use this!):
>
> <settings>
> <proxies>
> <proxy>
> <id>myproxy</id>
> <active>true</active>
> <protocol>http</protocol>
> <username>proxyuser</username>
> <password>proxypass</password>
> <host>proxy.host.net</host>
> <port>80</port>
> <nonProxyHosts>local.net,some.host.com</nonProxyHosts>
> </proxy>
> </proxies>
> </settings>
>
> Fill in the username, password, host etc. with appropriate values for
> your location.
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
> http://xircles.codehaus.org/manage_email
>
>
>
--
View this message in context:
http://www.nabble.com/how-do-I-set-jar-options-tf3086324.html#a8594409
Sent from the Maven Eclipse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email