maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Olivier Lamy <ol...@apache.org>
Subject Re: Maven way of retrieving URL resources so that settings.xml/proxy is used?
Date Wed, 19 Oct 2011 09:31:25 GMT
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

2011/10/17 Barrie Treloar <baerrach@gmail.com>:
> I'm not sure how to fix this, there is code already that attempts to
> use a URL by calling openConnection()
>
> e.g.
> URL url ...
> url.openConnection().getInputStream()
>
> The problem is that this fails when you are behind a firewall.
>
> [INFO] Unable to retrieve remote resource
> https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-eclipse-plugin/src/test/resources/projects/project-myeclipse-05/eclipse-settings/checkstyle-config.xml:
> Connection refused: connect
>
> Inside Maven how should these connections be handled so that the
> settings.xml file is respected for proxy configuration?
>
> Cheers
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>



-- 
Olivier Lamy
Talend : http://talend.com
http://twitter.com/olamy | http://linkedin.com/in/olamy

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


Mime
View raw message