You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by irena <ir...@yahoo.com> on 2007/06/27 13:18:34 UTC
maven.xml use ant taskdef sshexec problem
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: maven.xml use ant taskdef sshexec problem
Posted by Lukas Theussl <lt...@apache.org>.
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org