You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Barrie Treloar (JIRA)" <ji...@codehaus.org> on 2011/12/12 00:08:02 UTC

[jira] (MECLIPSE-696) Allow file contents to be obtained from url or location does not work behind a firewall

    [ https://jira.codehaus.org/browse/MECLIPSE-696?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=285552#comment-285552 ] 

Barrie Treloar commented on MECLIPSE-696:
-----------------------------------------

See http://maven.40175.n5.nabble.com/Maven-way-of-retrieving-URL-resources-so-that-settings-xml-proxy-is-used-tp4908415p4908415.html

{quote}
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.
{quote}
                
> Allow file contents to be obtained from url or location does not work behind a firewall
> ---------------------------------------------------------------------------------------
>
>                 Key: MECLIPSE-696
>                 URL: https://jira.codehaus.org/browse/MECLIPSE-696
>             Project: Maven 2.x Eclipse Plugin
>          Issue Type: Improvement
>    Affects Versions: 2.3
>            Reporter: Barrie Treloar
>            Assignee: Arnaud Heritier
>             Fix For: 2.5
>
>
> See MECLIPSE-219
> The code uses raw getURL connections and the integration tests fail for testProject44 because the can not connect.
> {code:title=EclipsePlugin.writeAdditionalConfig()}
> inStream = file.getURL().openConnection().getInputStream();
> {code}
> I tried setting -Dhttp.proxyHost as additional args the tests but this doesn't appear to work.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira