I am trying to copy a folder and its subfolders from the target folder of my
maven project to a tomcat webapps folder.

Most of the content is copied just fine to the remote folder but some
folders are not copied and the copy task never terminates. This is how I
specify it in the pom.xml file:

<plugins>
<plugin>
        <artifactId>maven-antrun-plugin</artifactId>
        <executions>
                <execution>
                        <id>test</id>
                        <phase>install</phase>
                        <goals>
                                <goal>run</goal>
                        </goals>
                        <configuration>
                                <tasks>
                                        <scp
                                                
todir="myuser:myp...@host:/var/lib/tomcat5.5/webapps/test/"
                                                trust="true" 
failonerror="false">
                                                <fileset 
dir="${project.build.directory}/site" />
                                        </scp>
                                </tasks>
                        </configuration>
                </execution>
        </executions>
        <dependencies>
                <dependency>
                        <groupId>ant</groupId>
                        <artifactId>ant-jsch</artifactId>
                        <version>1.6.5</version>
                </dependency>
                <dependency>
                        <groupId>com.jcraft</groupId>
                        <artifactId>jsch</artifactId>
                        <version>0.1.42</version>
                </dependency>
        </dependencies>
</plugin>
</plugins>

When I run the goal I get the following:

[INFO] Executing tasks
      [scp] Connecting to host:22
      [scp] Sending: a.jar : 1329
      [scp] File transfer time: 0,01 Average Rate: 221.500,0 B/s
      [scp] Sending: b.jar : 4820
      [scp] File transfer time: 0,01 Average Rate: 401.666,67 B/s
      [scp] Sending: c.xml : 553
      [scp] File transfer time: 0,0 Average Rate: 138.250,0 B/s



>From here it never terminates and the folder 'dir2' is never created/copied
with its content. Any ideas on why the content is only partially copied??

-- 
View this message in context: 
http://maven.40175.n5.nabble.com/Cannot-copy-folder-with-maven-antrun-plugin-scp-tp2841966p2841966.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to