First sorry for late response ! 2011/10/19 Barrie Treloar <[email protected]>: > On Wed, Oct 19, 2011 at 8:01 PM, Olivier Lamy <[email protected]> wrote: >> Hello, >> You must use wagon for that and setup a wagon instance with various >> informations from settings. >> As a sample you can have a look atproject-info-reports plugin >> >> http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/dependencies/RepositoryUtils.java > > Thanks for the reply. > > I'm clueless about Wagon. > When I looked at it it looked like it (and again via > http://maven.apache.org/ref/2.2.1/maven-artifact-manager/apidocs/org/apache/maven/artifact/manager/WagonManager.html) > it looks like it handles repo access only. > > http://maven.apache.org/wagon/ doesn't give me a n00bs guide. > > How do I handle general purpose URLs? Access to > http://maven.apache.org/wagon/wagon-providers/wagon-http/ is what I > think I want...
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. HTH > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- Olivier Lamy Talend : http://talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy [1] http://maven.apache.org/wagon/apidocs/org/apache/maven/wagon/Wagon.html --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
