You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by an...@carsat-centreouest.fr on 2012/01/06 16:06:28 UTC
[wagon-ssh] Does really recursive ?
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
antony.fons@carsat-centreouest.fr
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
Re: [wagon-ssh] Does really recursive ?
Posted by Benson Margulies <bi...@gmail.com>.
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, <an...@carsat-centreouest.fr> 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
> antony.fons@carsat-centreouest.fr
> 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org