Hi All,
Recently I found out from this forum how to get an ant ftp target to work
from maven.
I got it working one one project, but the exact same plugin did not work on
another project on another machine.
It gave me errors as if I did not have the dependencies correct
this is the error
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error executing ant tasks
Embedded error: Could not create task or type of type: ftp.
This is the plugin
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<dependencies>
</dependency>
<!-- add dependency so ftp will run -->
<dependency>
<groupId>ant</groupId>
<artifactId>ant-commons-net</artifactId>
<version>1.6.5</version>
</dependency>
<dependency>
<groupId>commons-net</groupId>
<artifactId>commons-net</artifactId>
<version>1.4.1</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>antrun_installer</id>
<phase>install</phase>
<configuration>
<tasks>
<echo>${project.parent.parent.basedir}</echo>
<property name="stamp"
value="${stamp.version}"/>
<property name="env.IA_PATH_NRM_HOME"
value="${project.parent.parent.basedir}"/>
<ant antfile="./resources/ant/build.xml"
inheritRefs="true">
<target name="installer"/>
</ant>
<!-- add the ftp copy to the build -->
<ftp server="ftp.server.net"
userid="user1" password="pass"
remotedir="installer">
<fileset
dir="/target/vem_Build_Output/Web_Installers/InstData/Windows/NoVM">
<include
name="**/*.exe"/>
<include
name="**/*.bin"/>
</fileset>
</ftp>
</tasks>
</configuration>
Any thoughts on why this would work in one project but not another?
Thanks
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
--
View this message in context:
http://www.nabble.com/ant-ftp-from-mave-plugin-works-on-one-project-but-not-another-tp16863813s177p16863813.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]