I am trying to run scp optional task from inside maven 2 to deploy a maven 2 artifact. I keep getting the following error:

[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error executing ant tasks

Embedded error: Could not create task or type of type: scp.

Ant could not find the task or a class this task relies upon.


I know that scp optional task is in jsch.x.y.z jar. I couldn't find the the ant maven uses. It doesn't use command line ant I couldn't find a way to get maven to see this jar. What should I do?


pom.xml

<artifactId>maven-antrun-plugin</artifactId>
         <executions>
           <execution>
               <id>install</id>
             <phase>install</phase>
             <configuration>
               <tasks>
<scp file="C:\myproject\customer\target\baydonline-1.0-SNAPSHOT.war" todir="username:[EMAIL PROTECTED]:/cygdrive/c/jboss-4.0.5.GA/server/default/deploy"
                       trust="true"/>
               </tasks>
             </configuration>
             <goals>
               <goal>run</goal>
             </goals>
           </execution>
         </executions>
</plugin>
Any idea would be appreciated.

Maruf


Reply via email to