You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Domingo José González Cabrera <do...@gmrcanarias.com> on 2012/04/06 18:19:00 UTC
ftp-wagon
Hi, how set passivemode = false. My pom.xml
<build>
<sourceDirectory>${basedir}/src</sourceDirectory>
<outputDirectory>${basedir}/WebRoot/WEB-INF/classes</outputDirectory>
<resources>
<resource>
<directory>${basedir}/src</directory>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</resource>
</resources>
<!-- Extension FTP del plug in wagon -->
<extensions>
<extension>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-ftp</artifactId>
<version>2.2</version>
</extension>
</extensions>
<plugins>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<webappDirectory>${basedir}/WebRoot</webappDirectory>
<warSourceDirectory>${basedir}/WebRoot</warSourceDirectory>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>wagon-maven-plugin</artifactId>
<!-- Contains unique execution declarations for CSS files, layout images
and war file. -->
<executions>
<!-- Declaration for copying CSS files via FTP -->
<execution>
<id>upload</id>
<!-- Describes the lifecycle phase when the plugin's goals are being
executed. -->
<phase>install</phase>
<!-- Describes the goals are executed in the specified lifecycle phase. -->
<goals>
<goal>upload</goal>
</goals>
<configuration>
<!-- Describes the local directory, which contents are copied. -->
<fromDir>${webapp.local.dir}</fromDir>
<!-- Describes the included files. -->
<includes>*</includes>
<!-- Describes the url of the remote FTP server. -->
<url>${webapp.remote.url}</url>
<!-- Describes the remote directory, where the contents of the local
directory are copied. -->
<toDir>${webapp.remote.dir}</toDir>
<!-- Describes the server id, which is used to fetch the used credentials
from settings.xml. -->
<serverId>${webapp.remote.server.id}</serverId>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
Un Saludo,
Domingo José González Cabrera
Coordinador del área de Nuevas Tecnologías
domingogc@gmrcanarias.com <ma...@gmrcanarias.com>
www.gmrcanarias.com <http://www.gmrcanarias.com/>
C/ Subida al Mayorazgo 26, portal B
Planta 2 - Polígono Industrial El Mayorazgo
38108 Santa Cruz de Tenerife
Tel: 902 377 777 Fax: 922 236 109