The diff I submitted earlier for HttpUtils.java wasn't very helpful. 
Here it is again, sorry.

Johnny Cass wrote:
> Hi,
> 
> I couldn't get maven to build using 'ant -f build-bootstrap.xml' on my 
> machine. The proxy was preventing the 'get-list' task from updating the 
> jars to lib.repo.
> 
> I added the proxy configuration properties to the 'get-list' task and 
> changed the 'Authorization' property in HttpUtils.java to 
> 'Proxy-Authorization'. Seems to work ok now.
> 
> Is this the proper solution or am I missing something obvious? Maven is 
> supposed to provide full proxy support at the moment right?
> 
> Thank you for your time.
> -Johnny.
> 
> 
> ------------------------------------------------------------------------
> 
> total 28
> -rw-r--r--    1 jcass    root         4381 Apr  5 07:21 AsyncStreamReader.java
> drwxr-xr-x    2 jcass    root         4096 May 24 10:49 CVS/
> -rw-r--r--    1 jcass    root        10045 May 24 10:58 HttpUtils.java
> -rw-r--r--    1 jcass    root            0 May 24 12:23 HttpUtils.java.patch.txt
> -rw-r--r--    1 jcass    root         3476 Mar  3 04:53 JarUtil.java
> 
> 
> ------------------------------------------------------------------------
> 
> Index: build-bootstrap.xml
> ===================================================================
> RCS file: /home/cvspublic/jakarta-turbine-maven/build-bootstrap.xml,v
> retrieving revision 1.86
> diff -u -r1.86 build-bootstrap.xml
> --- build-bootstrap.xml       19 May 2002 05:40:39 -0000      1.86
> +++ build-bootstrap.xml       24 May 2002 10:25:29 -0000
> @@ -144,6 +144,10 @@
>        listFile="jars.list"
>        dest="${lib.repo}"
>        baseUrl="${maven.get.jars.baseUrl}/"
> +      proxyHost="${proxy.host}"
> +      proxyPort="${proxy.port}"
> +      userName="${proxy.userName}"
> +      password="${proxy.password}"
>      />
>    
>    </target>
> 
> 
> ------------------------------------------------------------------------
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 


Index: HttpUtils.java
===================================================================
RCS file: 
/home/cvspublic/jakarta-turbine-maven/src/java/org/apache/maven/util/HttpUtils.java,v
retrieving revision 1.2
diff -u -r1.2 HttpUtils.java
--- HttpUtils.java      3 May 2002 06:03:26 -0000       1.2
+++ HttpUtils.java      24 May 2002 10:40:50 -0000
@@ -138,7 +138,7 @@
                     // auth and we will eventually move over httpclient
                     // in the commons.
                 }
-                connection.setRequestProperty("Authorization", "Basic " + encoding);
+                connection.setRequestProperty("Proxy-Authorization", "Basic " + 
+encoding);
             }
 
             //connect to the remote site (may take some time)

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

Reply via email to