maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Barrie Treloar <baerr...@gmail.com>
Subject Re: Maven way of retrieving URL resources so that settings.xml/proxy is used?
Date Fri, 28 Oct 2011 10:19:08 GMT
On Fri, Oct 28, 2011 at 6:35 PM, Olivier Lamy <olamy@apache.org> wrote:
> First sorry for late response !

Hey I'm grateful for any response :)

> The first is too lookup your wagon instance.
> Then use one of the connect method of your instance [1].
> For simplicity use this one connect( Repository repository,
> AuthenticationInfo authenticationInfo, ProxyInfo proxyInfo ) (auth and
> proxy info can be null).
>
> If you want to get the folllowing file (http://maven.apache.org/foo.html)
> Use a Repository object with url http://maven.apache.org .
>
> Then use wagon.get( "foo.html", destFile );
> destFile is File object where you want to store your download result.

I'll give that a whirl tomorrow.
Cheers

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Mime
View raw message