The sshexec task was only added in ant 1.6, which means it's not
available in Maven 1.0.2, which uses ant 1.5.3. Upgrade to Maven 1.1! :)
-Lukas
irena wrote:
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
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]