Hi all,

I want to use maven goal with  ant  <taskdef name="sshexec" in order to
perform some command on remote server.

 my maven.xml

<goal name="test">

    <taskdef name="sshexec"

    classname="org.apache.tools.ant.taskdefs.optional.ssh.SSHExec"/>

    <ant:sshexec host="xxxxxxxxxxxx" username="xxx" password="xxxxxxxx"
command="mkdir mydir"/>

 </goal>


when I ran : maven  test 
I receive the following error


C:\workspace\PosaETE>maven test
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0.2


BUILD FAILED
File...... C:\workspace\PosaETE\maven.xml
Element... taskdef
Line...... 92
Column.... 68
taskdef class org.apache.tools.ant.taskdefs.optional.ssh.SSHExec cannot be
found
Total time: 2 seconds
Finished at: Wed Jun 27 11:40:54 IDT 2007

 

Please, can you help me!

 

Thank you

 

Irena


-- 
View this message in context: 
http://www.nabble.com/maven.xml-use-ant-taskdef-sshexec-problem-tf3987710s177.html#a11322527
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to