What is it you are trying to achieve here? It doesn't seem to involve "site:deploy" like the subject says. What command are you running on the command line?
On 2010-07-23 19:53, Meeusen, Christopher W. wrote: > Hi, > > > > I'm trying to transfer a directory of files to our web server, and I > thought that using mvn site:deploy would do what I want, but I'm getting > an error when I run the site:deploy command. I'm running from Windows 7 > scp'ing to linux 10.04 server edition. The linux system has openSSH > already installed. I'm trying to follow the documentation here > http://maven.apache.org/plugins/maven-deploy-plugin/examples/deploy-ssh- > external.html, but I must be missing something.... I've already > downloaded the plink.exe file and added the directory to my path > variable. > > > > > > Thanks! > > Chris > > > > Here is my pom.xml settings: > > > > <distributionManagement> > > <repository> > > <id>r0210112</id> > > <url>scpexe://var/www/wsaxis2M</url> > > </repository> > > </distributionManagement> > > > > <build> > > > > <extensions> > > <!-- Enabling the use of FTP --> > > <extension> > > <groupId>org.apache.maven.wagon</groupId> > > <artifactId>wagon-ssh-external</artifactId> > > <version>1.0-beta-6</version> > > </extension> > > </extensions> > > > > > > > > > > And my setup in my settings.xml > > <server> > > <id>r0210112</id> > > <username>maven</username> > > <password>PASSWORD</password> > > <filePermissions>644</filePermissions> > > <directoryPermissions>755</directoryPermissions> > > <!-- <privateKey>/path/to/your/private/key</privateKey> not needed > if using pageant --> > > <configuration> > > <sshExecutable>plink</sshExecutable> > > <scpExecutable>pscp</scpExecutable> > > <!-- <sshArgs>other arguments you may need</sshArgs> --> > > </configuration> > > </server> > > > > > > > > Error message: > > > > ERROR] Failed to execute goal > org.apache.maven.plugins:maven-deploy-plugin:2.4:deploy (default-deploy) > on project wsaxisM: Error deploying artifact: Error executing command > for transfer: Exit code 1 - 'ssh' is not recognized as an internal or > external command, > > operable program or batch file. > > -> [Help 1] > > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to > execute goal org.apache.maven.plugins:maven-deploy-plugin:2.4:deploy > (default-deploy) on project wsaxisM: Error deploying artifact: Error > executing command for transfer > > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec > ycleExecutor.java:585) > > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec > ycleExecutor.java:324) > > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:247) > > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:104) > > at org.apache.maven.cli.MavenCli.execute(MavenCli.java:427) > > at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:157) > > at org.apache.maven.cli.MavenCli.main(MavenCli.java:121) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav > a:39) > > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor > Impl.java:25) > > at java.lang.reflect.Method.invoke(Method.java:597) > > at > org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launche > r.java:290) > > at > org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:2 > 30) > > at > org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launc > her.java:409) > > at > org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352 > ) > > Caused by: org.apache.maven.plugin.MojoExecutionException: Error > deploying artifact: Error executing command for transfer > > at > org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:195) > > at > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBui > ldPluginManager.java:105) > > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec > ycleExecutor.java:577) > > ... 14 more > > Caused by: > org.apache.maven.artifact.deployer.ArtifactDeploymentException: Error > deploying artifact: Error executing command for transfer > > at > org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(Defaul > tArtifactDeployer.java:92) > > at > org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:173) > > ... 16 more > > Caused by: org.apache.maven.wagon.TransferFailedException: Error > executing command for transfer > > at > org.apache.maven.wagon.providers.ssh.external.ScpExternalWagon.put(ScpEx > ternalWagon.java:395) > > at > org.apache.maven.repository.legacy.DefaultWagonManager.putRemoteFile(Def > aultWagonManager.java:498) > > at > org.apache.maven.repository.legacy.DefaultWagonManager.putArtifact(Defau > ltWagonManager.java:450) > > at > org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(Defaul > tArtifactDeployer.java:82) > > ... 17 more > > Caused by: org.apache.maven.wagon.CommandExecutionException: Exit code 1 > - 'ssh' is not recognized as an internal or external command, > > operable program or batch file. > > > > at > org.apache.maven.wagon.providers.ssh.external.ScpExternalWagon.executeCo > mmand(ScpExternalWagon.java:209) > > at > org.apache.maven.wagon.providers.ssh.external.ScpExternalWagon.executeCo > mmand(ScpExternalWagon.java:149) > > at > org.apache.maven.wagon.providers.ssh.external.ScpExternalWagon.put(ScpEx > ternalWagon.java:389) > > ... 20 more > > [ERROR] > > -- Dennis Lundberg --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org