The error was thrown inside the Jsch library which the wagon uses on ssh
connections.
It seems to me like it is executing a file named "mkdir" which really
doesn't exist on windows machines. I had the same problem with a
different application and had to resort to detecting the OS first and
execute "cmd.exe" or "command.com" on windows machines. I don't see any
open issues on wagon-ssh related to this error so I think you should
create one and there'll probably be a better response from there IF this
is a bug.
wagon-ssh Jira issues are here: http://jira.codehaus.org/browse/WAGONSSH
[EMAIL PROTECTED] wrote:
Hi All,
I'm getting the following error when i execute "mvn -e site-deploy" my
scp works fine from command line any ideas?
The authenticity of host 'Tiger' can't be established.
RSA key fingerprint is 73:47:7e:3d:5d:3c:33:71:07:f2:7d:01:43:06:fd:33.
Are you sure you want to continue connecting? (yes/no): yes
scp://Tiger - Session: Opened
Executing command: mkdir -p /.
scp://10.72.87.103 - Session: Disconnecting
scp://10.72.87.103 - Session: Disconnected
[INFO]
----------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
----------------------------------------------------------------------------
[INFO] Error uploading site
Embedded error: Error performing commands for file transfer
bash: /c/Program Files/AdminTools/Resource Kit/mkdir: No such file or
directory
[INFO]
----------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error uploading
site
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:544)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:469)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:448)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:30
1)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:268)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:137)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error uploading
site
at
org.apache.maven.plugins.site.SiteDeployMojo.execute(SiteDeployMojo.java:142)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:399)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:519)
... 16 more
Caused by: org.apache.maven.wagon.TransferFailedException: Error
performing commands for file transfer
at
org.apache.maven.wagon.providers.ssh.AbstractSshWagon.putDirectory(AbstractSshWagon.java:498)
at
org.apache.maven.plugins.site.SiteDeployMojo.execute(SiteDeployMojo.java:134)
... 18 more
Caused by: org.apache.maven.wagon.CommandExecutionException: bash:
/c/Program Files/AdminTools/Resource Kit/mkdir: No such f
ile or directory
at
org.apache.maven.wagon.providers.ssh.AbstractSshWagon.executeCommand(AbstractSshWagon.java:287)
at
org.apache.maven.wagon.providers.ssh.AbstractSshWagon.putDirectory(AbstractSshWagon.java:494)
... 19 more
[INFO]
----------------------------------------------------------------------------
[INFO] Total time: 14 seconds
[INFO] Finished at: Tue Dec 20 13:41:19 CST 2005
[INFO] Final Memory: 6M/11M
[INFO]
----------------------------------------------------------------------------
Thanks,
=============================
Raghurajan Gurunathan
Desk : 713.427.5305
=============================
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]