Hello,
Trying to use deploy to place project jar onto network repository. I have both Windows client and server (XP / 2003) and am using Putty for my SHH tool along with pscp. In my settings I have: <server> <id>MyRepo</id> <username>administrator</username> <password>testpassword</password> </server> Now, when I try to use the deploy:deploy-file goal, just with a test file, like so: D:\ >mvn deploy:deploy-file -Durl=scp://10.1.1.13 -DrepositoryId=MyRepo -Dfile=results.jar -DgroupId=Testgroup -DartifactId=test -Dversion=1.0.0 -Dpackaging=jar -Dmave n.scp.executable=pscp -e I get: [INFO] Error deploying artifact: Error performing commands for file transfer Exit code: 1 - The syntax of the command is incorrect. [INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Error deploying artifact : Error performing commands for file transfer at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:559) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone Goal(DefaultLifecycleExecutor.java:488) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau ltLifecycleExecutor.java:458) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan dleFailures(DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen ts(DefaultLifecycleExecutor.java:219) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi fecycleExecutor.java:140) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) 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 deploying artif act: Error performing commands for file transfer at org.apache.maven.plugin.deploy.DeployFileMojo.execute(DeployFileMojo. java:240) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi nManager.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:534) ... 16 more Caused by: org.apache.maven.artifact.deployer.ArtifactDeploymentException: Error deploying artifact: Error performing commands for file transfer at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(Def aultArtifactDeployer.java:91) at org.apache.maven.plugin.deploy.DeployFileMojo.execute(DeployFileMojo. Now, I can run just 'd:>pscp' and get a listing of options so maven should also be able to find the pscp executable (it's in the 'path'). Also, if I execute "C:\>pscp test.cfg <mailto:[EMAIL PROTECTED]:test.cfg> [EMAIL PROTECTED]:test.cfg" (and provide the pasword at prompt), the file is transferred which shows that the user id and password are working for that server URL. >From what I can tell, maven should be able to see pscp, it has the server url, the user id and password. Is there somewhere I can see what command it's trying to execute via the pscp executable? Any help is appreciated. Best regards, Randall
BEGIN:VCARD VERSION:2.1 N:Fidler;Randall FN:Randall Fidler EMAIL;PREF;INTERNET:[EMAIL PROTECTED] REV:20050926T075331Z END:VCARD
smime.p7s
Description: S/MIME cryptographic signature