You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Verma, Nitin (GECP, OTHER, 529706)" <NI...@APPL.GE.COM> on 2003/05/27 15:20:26 UTC

maven jar:deploy not working

Hi All,

When I got this problem I downloaded plink and puttygen.
Then generated ssh private/public keys.
Then I made ssh.bat.

-----ssh.bat------
@echo off

rem Nitin Verma 

set SHH_CMD_LINE_ARGS=%1
if ""%1""=="""" goto doSSH
shift

:setupArgs
if ""%1""=="""" goto doSSH
set SHH_CMD_LINE_ARGS=%SHH_CMD_LINE_ARGS% %1
shift
goto setupArgs

:doSSH
plink -shh -i d:\putty\neo.PPK %SHH_CMD_LINE_ARGS%
goto end

:end

------------------

After that appended public key to /home/neo/.ssh/authorized_keys.
Tried a ssh on command line, and that worked.
Note: my.com is a lunix box.

e:\> ssh -l neo my.com "mkdir -p /home/neo/maven/repository/myprojects/jars"

Note: shh.bat is in my PATH

But I still get the same error!

Anyother settings needed?


-----------Error---------------------------
 __  __
|  \/  |__ Jakarta _ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0-beta-9-SNAPSHOT


jar:deploy:
java:prepare-filesystem:

java:compile:
    [javac] Since fork is true, ignoring compiler setting.

java:jar-resources:

test:prepare-filesystem:

test:test-resources:

test:compile:

test:test:

jar:jar:

    [echo]
        Moving target/my-1.5-b1-dev.jar to the
/home/neo/maven/repository/myprojects/jars on my.com


BUILD FAILED
Execute failed: java.io.IOException: CreateProcess: ssh -l neo my.com "mkdir
-p /home/neo/maven/repository/myprojects/jars" error=2
Total time:  8 seconds

-----------------------------------------------------

Regards,

Nitin Verma