I have an idea: maven uses the first plugin config it sees, so if that
other project is using ant anywhere else, and it runs first, the
dependency won't actually be used.
-Original Message-
From: bheath [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 24, 2008 7:58 PM
To: users@maven.apache.org
Subject: ant ftp from mave plugin works on one project but not another
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
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-antrun-plugin/artifactId
dependencies
/dependency
!-- add dependency so ftp will run --
dependency
groupIdant/groupId
artifactIdant-commons-net/artifactId
version1.6.5/version
/dependency
dependency
groupIdcommons-net/groupId
artifactIdcommons-net/artifactId
version1.4.1/version
/dependency
/dependencies
executions
execution
idantrun_installer/id
phaseinstall/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
goalrun/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]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]