You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jens Riboe <jr...@wilytech.com> on 2006/02/21 08:00:42 UTC
[M 2.0.2] Cannot run site:deploy using scpexe, However can run deploy:deploy using scpexe
Hi,
I have problem running site:deploy using scpexe. It seems to me that it
does not pick up the settings (~\.m2\settings.xml), where plink/pscp are
defined.
However, this seems to work without problems when I run deploy:deploy to
the same host with the same settings as above (just another target
directory).
I'm using Maven 2.0.2 running on WinXP with putty installed.
Here are more details:
--- CMD ---
scpexe://myHost/home/myUser/tools/MyTool - Session: Opened Executing
command: ssh -i "C:\Documents and Settings\myUser\My Documents\My
Certificates\myHost.priv.ppk" -o "BatchMode yes" myUser@myHost "mkdir -p
/home/myUser/tools/MyTool/."
'ssh' is not recognized as an internal or external command, operable
program or batch file.
scpexe://myHost/home/myUser/tools/MyTool - Session: Disconnecting
---END---
In the source code of wagon sshext, I can see the check for putty
boolean putty = sshExecutable.indexOf( "plink" ) >= 0;
There is several putty checks like
if ( putty ) {
cl.createArgument().setValue( "-batch" );
} else {
cl.createArgument().setValue( "-o" );
cl.createArgument().setValue( "BatchMode yes" );
}
So, based on this and the generated command line above I can conclude
that it does not pick up the settings.
However, I can successfully perform a deploy:deploy, which means the
settings are picked up by the deploy plugin, but not the site plugin.
Here is a snippet from the settings file
<servers>
<server>
<id>myServer</id>
<username>myUser</username>
<privateKey>C:\Documents and Settings\myUser\My Documents\My
Certificates\myHost.priv.ppk</privateKey>
<configuration>
<sshExecutable>plink</sshExecutable>
<scpExecutable>pscp</scpExecutable>
<sshArgs>-v</sshArgs>
</configuration>
</server>
</servers>
Here is a snippet from the pom file
. . .
<distributionManagement>
<repository>
<id>myServer</id>
<url>scpexe://myHost/home/myUser/M2</url>
</repository>
<site>
<id>myServer</id>
<url>scpexe://myHost/home/myUser/tools/MyTool</url>
</site>
</distributionManagement>
. . .
<build>
<extensions>
<extension>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-ssh-external</artifactId>
<version>1.0-alpha-6</version>
</extension>
</extensions>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<configuration>
<locales>en</locales>
</configuration>
</plugin>
. . .
Any light on this 'show stopper' is highly appreciated.
/Jens
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org