Thanks for the help guys ... scp is not an option for me, but at least I 
was able to confirm my suspicion that this currently is not an easy thing 
to do with Maven.

This would definitely be a feature wish for maven, that would help in the 
ant/maven comparison stakes.  I'm just sorry I haven't got time to do it 
myself.

/Michael

"Alan D. Salewski" <[EMAIL PROTECTED]> skrev den 
26-09-2007 16:05:17:

> On Wed, Sep 26, 2007 at 01:23:40AM -0400, Brian E. Fox spake thus:
> > To my knowledge, only the scp wagon supports directory copying (hence
> > the inability to deploy sites any other way besides file). It would 
seem
> > that the ftp wagon would need to support this first and then a plugin
> > could leverage it.
> > 
> > --Brian
> > 
> > > -----Original Message-----
> > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> > > Sent: Tuesday, September 25, 2007 8:00 AM
> > > To: Maven Users List
> > > Subject: FTP plugin for deploying a directory, _not_ an artifact
> > > 
> > > Hi,
> > > 
> > > I need to be able to deploy an entire directory to an ftp server. 
> > > 
> > > Is anyone working on such a plugin?
> > > 
> > > The only solutions I have googled so far use ant run, and include 
som 
> > > creativity to include a dependency which ant needs.  This seems very
> > > ugly. 
> > >  Either that or they use maven1
> > > 
> > > I can understand why it isn't included in the default maven stuff, 
as it
> > > 
> > > is not a "conventional build thing".  It shouldn't be too easy, or
> > > people 
> > > will ignore the (great) maven conventions, which is a real risk.
> > > 
> > > best regards, and thanks in advance,
> > > Michael
> 
> This doesn't directly address your request, but perhaps it will be
> useful. If you have scp access to the remote host, you can use the
> 'wagon-maven-plugin' from the Apache MyFaces project to deploy an entire
> directory:
> 
>       <plugin>
>         <groupId>org.apache.myfaces.maven</groupId>
>         <artifactId>wagon-maven-plugin</artifactId>
>         <executions>
>           <execution>
>             <phase>deploy</phase>
>             <id>deploy-non-maven-artifacts</id>
>             <goals>
>               <goal>deploy</goal>
>             </goals>
>             <configuration>
>               <url>scpexe://somehost.com/path/to/some/directory/</url>
>               <inputDirectory>${project.build.directory}
> /whatever</inputDirectory>
>             </configuration>
>           </execution>
>         </executions>
>       </plugin>
> 
> Note that I've not tried to use the plugin to deploy a directory with
> subdirs. I'd be interested to hear whether or not that works.
> 
> HTH,
> -Al

Reply via email to