would mrm-maven-plugin help your integration tests?

- Stephen

---
Sent from my Android phone, so random spelling mistakes, random nonsense
words and other nonsense are a direct result of using swype to type on the
screen
On 13 Dec 2011 00:55, "Barrie Treloar" <baerr...@gmail.com> wrote:

> On Tue, Dec 13, 2011 at 10:56 AM, Brett Porter <br...@apache.org> wrote:
> > I'm not quite sure what your question is. Are you looking for the Wagon
> Javadocs [1], or an explanation of how to set the proxy info (just below
> the snippet you gave in the source code), or the maven 3.x comment (not
> sure it matters due to backwards compat...)
>
> All of the above.
> :)
>
> I'm trying to fix the integration tests for the eclipse plugin, and
> since I'm behind a firewall (NTLM) this test fails.
>
> I've found the javadocs but they don't tell me how to use wagon.
> I'm floundering since I've never done this before.
>
> The example link isn't a mojo, so I'm missing how to pull all the
> pieces together.
> Like how to get access to a Settings instance for use in populating
> ProxyInfo.
> (http://maven.apache.org/plugin-developers/index.html and
> http://docs.codehaus.org/display/MAVENUSER/Mojo+Developer+Cookbook
> don't list how to do this)
>
> I can happily ignore the 3.x comment.
>
> And I feel like this is a lot of work and perhaps I'm doing it the wrong
> way.
>
> So far I've got
> * Dependency to org.apache.maven.wagon:wagon-provider-api:2.1
> * the WagonManger via @component injection
> * a custom once off definition of Repository, whose id should be
> irrelevant since I'm only getting http(s) resources from it: new
> Repository( "additonal-configs", endPointUrl );
> * an instance of Wagon from that repository
> * A hand crafted ProxyInfo (since I dont know how to pull this out of
> setings yet)
> * A call to wagon.connect( repository,
> wagonManager.getAuthenticationInfo( repository.getId() ), proxyInfo );
> // authentication info should probably be null here
>
> Trying with lightweight...
> [DEBUG] Using Wagon implementation lightweight from default mapping
> for protocol https
> [DEBUG] Checking for pre-existing User-Agent configuration.
> [DEBUG] Adding User-Agent configuration.
> https://svn.apache.org - Session: Opened
> Transfer error: org.apache.maven.wagon.TransferFailedException: Error
> transferring file: Connection refused: connect
>
> Trying with httpclient...
> [DEBUG] Using Wagon implementation httpclient from default mapping for
> protocol https
> [DEBUG] Checking for pre-existing User-Agent configuration.
> [DEBUG] Adding User-Agent configuration.
> https://svn.apache.org - Session: Opened
> Transfer error: java.net.ConnectException: Connection refused: connect
> Transfer error: org.apache.maven.wagon.TransferFailedException:
> Connection refused: connect
>
> This is definitely failing as I've hacked the proxy to point to
> NTLMAPS (a local NTLM proxy redirectory) and I've been able to see the
> get() below work.
>
> * A call to wagon.get( url.getPath(), projectRelativeFile );
> (No examples of what get should look like. But this appears to work
> now that I've used NTLMAPS to work around the proxy)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
> For additional commands, e-mail: dev-h...@maven.apache.org
>
>

Reply via email to