Based on that same error, I suppose you still don't have all the
proper dependencies you need in the Antrun plugin.

Take a look at the Ant FTP Task webpage for more details, I'm sure you
can figure it out:
http://ant.apache.org/manual/OptionalTasks/ftp.html

Wayne

On 4/25/06, RobJac <[EMAIL PROTECTED]> wrote:
>
> I am getting the same error still. Please find below my ear pom xml.
>
> <project xmlns="http://maven.apache.org/POM/4.0.0";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd";>
>        <modelVersion>4.0.0</modelVersion>
>        <groupId>DefinedBenefit_EA</groupId>
>        <artifactId>DefinedBenefit_EA</artifactId>
>        <packaging>ear</packaging>
>        <version>1.0</version>
>        <dependencies>
>            <dependency>
>              <groupId>DefinedBenefit_BackgroundJobs</groupId>
>              <artifactId>DefinedBenefit_BackgroundJobs</artifactId>
>              <version>1.0</version>
>              <type>jar</type>
>            </dependency>
>        </dependencies>
>        <build>
>            <directory>${basedir}</directory>
>            <finalName>${project.artifactId}</finalName>
>            <plugins>
>              <plugin>
>                <groupId>org.apache.maven.plugins</groupId>
>                <artifactId>maven-ear-plugin</artifactId>
>                <configuration>
>                <archive>
>                
> <manifestFile>${basedir}/src/META-INF/MANIFEST.MF</manifestFile>
>                </archive>
>                <earSourceDirectory>${basedir}/src</earSourceDirectory>
>                  <generateApplicationXml>false</generateApplicationXml>
>                    <resources>
>                      <resource>
>                        <directory>${basedir}/src</directory>
>                      </resource>
>                      </resources>
>                </configuration>
>              </plugin>
>                <plugin>
>                        <groupId>org.apache.maven.plugins</groupId>
>                        <artifactId>maven-antrun-plugin</artifactId>
>                        <dependencies>
>                              <dependency>
>                                 <groupId>ant</groupId>
>                                 <artifactId>ant-nodeps</artifactId>
>                                 <version>1.6.5</version>
>                              </dependency>
>                        </dependencies>
>                        <executions>
>                            <execution>
>                               <phase>generate-sources</phase>
>                               <configuration>
>                                 <tasks>
>                                    <ftp server="10.151.1.202"
>                                          remotedir="/opt/jboss403SP1"
>                                          depends="yes"
>                                          userid="jboss"
>                                          password="passw0rd">
>                                      <fileset dir="${basedir}"/>
>                                    </ftp>
>                                  </tasks>
>                               </configuration>
>                               <goals>
>                                  <goal>run</goal>
>                               </goals>
>                           </execution>
>                        </executions>
>                </plugin>
>            </plugins>
>        </build>
> </project>
>
> Please find below the exception
> ------------------------------------------
> Embedded error: Could not create task or type of type: ftp.
>
> Ant could not find the task or a class this task relies upon.
>
> This is common and has a number of causes; the usual
> solutions are to read the manual pages then download and
> install needed JAR files, or fix the build file:
>  - You have misspelt 'ftp'.
>   Fix: check your spelling.
>  - The task needs an external JAR file to execute
>     and this is not found at the right place in the classpath.
>   Fix: check the documentation for dependencies.
>   Fix: declare the task.
>  - The task is an Ant optional task and the JAR file and/or libraries
>     implementing the functionality were not found at the time you
>     yourself built your installation of Ant from the Ant sources.
>   Fix: Look in the ANT_HOME/lib for the 'ant-' JAR corresponding to the
>     task and make sure it contains more than merely a META-INF/MANIFEST.MF.
>     If all it contains is the manifest, then rebuild Ant with the needed
>     libraries present in ${ant.home}/lib/optional/ , or alternatively,
>     download a pre-built release version from apache.org
>  - The build file was written for a later version of Ant
>   Fix: upgrade to at least the latest release version of Ant
>  - The task is not an Ant core or optional task
>     and needs to be declared using <taskdef>.
>  - You are attempting to use a task defined using
>    <presetdef> or <macrodef> but have spelt wrong or not
>   defined it at the point of use
>
> Remember that for JAR files to be visible to Ant tasks implemented
> in ANT_HOME/lib, the files must be in the same directory or on the
> classpath
>
> Please neither file bug reports on this problem, nor email the
> Ant mailing lists, until all of these causes have been explored,
> as this is not an Ant bug.
> [INFO]
> -------------------------------------------------------------------------
> ---
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Error executing ant
> task
> s
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
> ultLifecycleExecutor.java:544)
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
> fecycle(DefaultLifecycleExecutor.java:469)
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
> ltLifecycleExecutor.java:448)
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
> dleFailures(DefaultLifecycleExecutor.java:301)
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
> ts(DefaultLifecycleExecutor.java:268)
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
> fecycleExecutor.java:137)
>        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
>        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113)
>        at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
>        at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:585)
>        at
> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>        at
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>
>        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Error executing
> ant t
> asks
>        at
> org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractA
> ntMojo.java:114)
>        at
> org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:83)
>
>        at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
> nManager.java:399)
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
> ultLifecycleExecutor.java:519)
>        ... 16 more
> Caused by: Could not create task or type of type: ftp.
>
> Ant could not find the task or a class this task relies upon.
>
> This is common and has a number of causes; the usual
> solutions are to read the manual pages then download and
> install needed JAR files, or fix the build file:
>  - You have misspelt 'ftp'.
>   Fix: check your spelling.
>  - The task needs an external JAR file to execute
>     and this is not found at the right place in the classpath.
>   Fix: check the documentation for dependencies.
>   Fix: declare the task.
>  - The task is an Ant optional task and the JAR file and/or libraries
>     implementing the functionality were not found at the time you
>     yourself built your installation of Ant from the Ant sources.
>   Fix: Look in the ANT_HOME/lib for the 'ant-' JAR corresponding to the
>     task and make sure it contains more than merely a META-INF/MANIFEST.MF.
>     If all it contains is the manifest, then rebuild Ant with the needed
>     libraries present in ${ant.home}/lib/optional/ , or alternatively,
>     download a pre-built release version from apache.org
>  - The build file was written for a later version of Ant
>   Fix: upgrade to at least the latest release version of Ant
>  - The task is not an Ant core or optional task
>     and needs to be declared using <taskdef>.
>  - You are attempting to use a task defined using
>    <presetdef> or <macrodef> but have spelt wrong or not
>   defined it at the point of use
>
> Remember that for JAR files to be visible to Ant tasks implemented
> in ANT_HOME/lib, the files must be in the same directory or on the
> classpath
>
> Please neither file bug reports on this problem, nor email the
> Ant mailing lists, until all of these causes have been explored,
> as this is not an Ant bug.
>        at
> org.apache.tools.ant.UnknownElement.getNotFoundException(UnknownEleme
> nt.java:493)
>        at
> org.apache.tools.ant.UnknownElement.makeObject(UnknownElement.java:39
> 1)
>        at
> org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.jav
> a:158)
>        at org.apache.tools.ant.Task.perform(Task.java:363)
>        at org.apache.tools.ant.Target.execute(Target.java:341)
>        at
> org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractA
> ntMojo.java:108)
>        ... 19 more
> [INFO]
> -------------------------------------------------------------------------
> ---
> [INFO] Total time: 1 second
> [INFO] Finished at: Tue Apr 25 19:43:12 BST 2006
> [INFO] Final Memory: 3M/6M
> [INFO]
> -------------------------------------------------------------------------
> ---
> --
> View this message in context: 
> http://www.nabble.com/Doubt-in-using-wagon-plugin-t1506734.html#a4088232
> Sent from the Maven - Users forum at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to