The maven-wagon-plugin, in my experience, is not useful for moving
arbitrary files from place to place. It expects a file structure like
that of a maven repository, and, when it doesn't find one, it doesn't
do the job. I recommend that people use the antrun plugin and the ant
scp tasks instead.

On Fri, Jan 6, 2012 at 10:06 AM,  <[email protected]> wrote:
>
>
> Hello
>
> I'm encounting this issue : When I download a simple directory whith
> wagon-ssh plugin, it works fine, but if directory has subdirectory, I
> obtain :
>
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Error handling resource
>
> Embedded error: Error occurred while listing '/media/images/part/' on
> remote repository: sftp://xxxxxx/opt/fatwire/deployment/CS
> String index out of range: 0
>
> Here's a my pom.xml bit :
>
> <extensions>
>      <extension>
>            <groupId>org.apache.maven.wagon</groupId>
>                  <artifactId>wagon-ssh</artifactId>
>                  <version>1.0-beta-6</version>
>      </extension>
> </extensions>
> <plugins>
>      <plugin>
>            <groupId>org.codehaus.mojo</groupId>
>            <artifactId>wagon-maven-plugin</artifactId>
>            <version>1.0-beta-3</version>
>            <executions>
>                  <execution>
>                        <id>download-media</id>
>                        <phase>package</phase>
>                        <goals>
>                              <goal>download</goal>
>                        </goals>
>                        <configuration>
>                              <serverId>DeliveryPDC2</serverId>
>                              <url>sftp://weblogic@xxxxxx/opt/fatwire
> /deployment/CS</url>
>                              <includes>**/*</includes>
>                              <fromDir>/media/images</fromDir>
>                              <toDir>${project.build.directory}/media</
> toDir>
>                        </configuration>
>                  </execution>
>            </executions>
>      </plugin>
>
> So, does wagon-ssh download recursively ?
>
> Thanks
>
> Antony
>
> (Embedded image moved to file: pic17035.gif)
> Antony FONS
> Concepteur Développeur
> Tél : 05 55 45 37 57
> [email protected]
> Caisse d'Assurance Retraite et de la Santé Au Travail Centre Ouest Service
> informatique développement
> 37 avenue du Président René Coty - 87048 Limoges Cedex |ou| Adresse de
> l'agence
> (Embedded image moved to file: pic09894.gif)
>  Afin de contribuer au respect de l´environnement,  merci de n´imprimer ce
> courriel que si nécessaire
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to