Hi,
Brett Porter wrote:
> It just has access to the predefined Java system properties (user.home
> and user.name, for example).
OK
> Was this in alpha-3 by adding the wagon to $M2_HOME/lib? Did anything
> else get added? It seems odd, as that provider should not be using
> that method of plexus-utils.
>
> Another (very temporary) option is to locally edit the file
> ~/.m2/repository/org/apache/maven/plugins/maven-deploy-plugin/2.0-alpha-3/maven-deploy-plugin-2.0-alpha-3.pom
> and add wagon-ssh-external as a dependency.
>
> If this is not successful, you may need to update to the current SVN
> version (or wait for beta-1) to make use of extensions.
I'm using the current svn build with the project pom additions suggested
previously.
I haven't copied anything to ~/.m2/repository or $M2_HOME/lib.
If I edit the maven-deploy-plugin pom (and remove the build extension
from my project pom) we're back to:
org.codehaus.plexus.component.repository.exception.ComponentLookupException:
Component descriptor cannot be found in the component repository:
org.apache.maven.wagon.Wagonscpexe
Removing all edits and copying the wagon-ssh-external jar to
$M2_HOME/lib works.
wagon-ssh-external now uses my native scp and ssh-agent as expected,
however it still requires a username tag in settings.xml:
java.lang.IllegalArgumentException: Authentication Credentials cannot be
null for SSH protocol
at
org.apache.maven.wagon.providers.sshext.ScpExternalWagon.openConnection(ScpExternalWagon.java:90)
I've checked that user.name and user.home are being set correctly in the
JVM.
AbstractWagon only appears to handle the case of null AuthenticationInfo
by attempting to extract the username from the deploy URL, although this
does not appear to work for me.
Setting the URL to
scpexe://[EMAIL PROTECTED]/path/to/repository
yields the same IllegalArgumentException as above.
Anyway, I can handle having a username in settings.xml and using
scpexe:// for my deploy URLs.
Thanks,
...andrew
--
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]