Hello all,

  I got Maven 2 working through the SAS proxy, but I had a bit of trouble.  
John's message below and the Maven 2 configuration info on the website show 
that you should use the "http://"; prefix on your proxy server host name in the 
<host> tag (in the proxy block in settings.xml).  I did this but got exceptions 
from wagon (connect refused, etc.) until I removed the prefix.  Now I can 
download from the remote repo through our proxy with no problems.

A bug, or perhaps something strange about our proxy setup?

Will 


-----------------------------------------
Will Gwaltney
SAS Institute
[EMAIL PROTECTED]
919-531-9025
"Nothing is more impossible than to write a book that wins every reader's 
approval." - Miguel de Cervantes
-----------------------------------------


-----Original Message-----
From: John Casey [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 08, 2005 3:35 PM
To: Maven Users List
Subject: Re: Maven 2

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi!

I tried to reply to your query on IRC, but I guess I was too late. So, I'll 
re-reply here. :)

Ilyevsky, Leonid (Equity Trading) wrote:
> I got maven2 today, and I am eager to start. Two main problems right 
> in the beginning:
> 
> 1. Where do I specify my web proxy ? Obviously maven2 does not use 
> build.properties anymore.

Specify a file called ~/.m2/settings.xml (in .m2 under your user-home
directory) with something similar to:

<settings>
  <profiles>
    <profile>
      <active>true</active>
      <localRepository>/path/to/local/repo</localRepository>
    </profile>
  </profiles>

  <!-- This is the part you're probably interested in... -->
  <proxies>
    <proxy>
      <active>true</active>
      <protocol>http</protocol>
      <host>http://proxy.somewhere.com</host>
      <port>80</port>
      <username>proxyuser</username>
      <password>somepassword</password>
      <nonProxyHosts>www.google.com,*.somewhere.com</nonProxyHosts>
    </proxy>
  </proxies>
</settings>

That first part is unrelated to the proxy, but it's useful for determining 
where the local repository is stored. The second part reveals password 
management which leaves something to be desired without doubt...but we have 
plans to improve that stuff in subsequent releases.

> 
> 2. On maven2 webpage they suggest to consult documentation frequently.
> Where is documentation anyway? I couldn't find it. If I looked at 
> documentation, I probably wouldn't have the problem #1.

http://maven.apache.org/maven2

We'll be adding documentation there as Maven 2.0 matures, so keep watching that 
space!

> 
> Please help. I cannot do anything without proxy settings.
> --------------------------------------------------------
> 
> If you are not an intended recipient of this e-mail, please notify the 
> sender, delete it and do not read, act upon, print, disclose, copy, retain or 
> redistribute it. Click here for important additional terms relating to this 
> e-mail.     http://www.ml.com/email_terms/
> --------------------------------------------------------
> 

Hope that helps,

John
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFCVt0AK3h2CZwO/4URAvfjAJ9K1Jn2hwTfCtniAdnPwZIierZNMwCggpQg
E8Xi+I5Tt605kKeEZH9lobg=
=UMUR
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to