Hi All
I am trying remote system .bat file need to execute
through my location PC. How can I achieve this by use maven with ant.
I tried so for
<goal name="maven:ssh" description="scp copy">
<taskdef name="sshexec"
classname="org.apache.tools.ant.taskdefs.optional.ssh.SSHExec"
classpathref="${maven.dependency.classpath}"/>
<sshexec host="${maven.remote.machine}"
username="${maven.remote.user}"
password="${maven.remote.password}"
command="exec">
<ant:exec executable="d:/Temp/sample.bat"/>
</sshexec>
</goal>
D:\Maven1\bin>maven maven:ssh
__ __
| \/ |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
|_| |_\__,_|\_/\___|_||_| v. 1.0.2
BUILD FAILED
File...... C:\Documents and
Settings\snatarajan2\.maven\cache\maven-webtest-plugin-0.1.0\plugin.jell
y
Element... taskdef
Line...... 84
Column.... 134
Reference not found.
Total time: 2 seconds
Finished at: Tue May 24 09:51:55 GMT+05:30 2005
Any one has idea advice me
Thanks in Advance
Kumar
Confidentiality Statement:
This message is intended only for the individual or entity to which it is
addressed. It may contain privileged, confidential information which is exempt
from disclosure under applicable laws. If you are not the intended recipient,
please note that you are strictly prohibited from disseminating or distributing
this information (other than to the intended recipient) or copying this
information. If you have received this communication in error, please notify us
immediately by return email.