You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by KLOPP Gerald <gk...@europarl.eu.int> on 2005/01/17 15:55:29 UTC

Taskdef problem

Hello,

I'd like to use the slimdog ant task in my maven.xml file.
To do so :
1- I define a custom ant task in this way :
<taskdef name="webtest" classname="org.jzonic.webtester.tasks.WebTesterTask" classpathref="maven.dependency.classpath" />

2- I add the dependency in my project.xml in this way :
    <dependency>
      <groupId>slimdog</groupId>
      <artifactId>webtester</artifactId>
      <jar>webtester.jar</jar>
      <url></url>
      <properties>
        <war.bundle>false</war.bundle>
      </properties>
    </dependency>

When I run maven, I get the following exception :
BUILD FAILED
File...... /dvl/RG99_FS1/app/websdidv/jboss/maven/app/europarl/maven.xml
Element... taskdef
Line...... 62
Column.... 126
taskdef class org.jzonic.webtester.tasks.WebTesterTask cannot be found

Looking the log file, The webtester jar file is added to the dependency classpath and the jar contains the org.jzonic.webtester.tasks.WebTesterTask class.

Do you have any idea?
Thanks,
Gerald 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: Taskdef problem

Posted by Charles Daniels <cj...@yahoo.com>.
Your WebTesterTask probably requires additional dependencies that are
missing from your project.xml.  The error message is probably misleading
in that it is not WebTesterTask that it cannot find, but some dependency
that cannot be found.  I suggest you run maven with the -e option so you
can see the stack trace.  When you look at the stack trace, it will
probably indicate the actual class that cannot be found, which should
point you to the correct dependency that you must add to project.xml.
This may happen more than once.  As you add a dependency, you may still
get the same exception because there may be yet another dependency that
is missing, so you may have to repeat this process until all
dependencies are discovered. 

> -----Original Message-----
> From: KLOPP Gerald [mailto:gklopp@europarl.eu.int] 
> Sent: Monday, January 17, 2005 9:55 AM
> To: users@maven.apache.org
> Subject: Taskdef problem
> 
> Hello,
> 
> I'd like to use the slimdog ant task in my maven.xml file.
> To do so :
> 1- I define a custom ant task in this way :
> <taskdef name="webtest" 
> classname="org.jzonic.webtester.tasks.WebTesterTask" 
> classpathref="maven.dependency.classpath" />
> 
> 2- I add the dependency in my project.xml in this way :
>     <dependency>
>       <groupId>slimdog</groupId>
>       <artifactId>webtester</artifactId>
>       <jar>webtester.jar</jar>
>       <url></url>
>       <properties>
>         <war.bundle>false</war.bundle>
>       </properties>
>     </dependency>
> 
> When I run maven, I get the following exception :
> BUILD FAILED
> File...... 
> /dvl/RG99_FS1/app/websdidv/jboss/maven/app/europarl/maven.xml
> Element... taskdef
> Line...... 62
> Column.... 126
> taskdef class org.jzonic.webtester.tasks.WebTesterTask cannot be found
> 
> Looking the log file, The webtester jar file is added to the 
> dependency classpath and the jar contains the 
> org.jzonic.webtester.tasks.WebTesterTask class.
> 
> Do you have any idea?
> Thanks,
> Gerald 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org