You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Sonnek, Ryan" <Ry...@bpc.com> on 2003/05/08 19:39:59 UTC

taskdef

Using maven beta 9, I can not define a new task for xdoclet.  Here's my
maven.xml:

    <property name="mypath" refid="maven.dependency.classpath" />
    <echo>${mypath}</echo>

    <taskdef 
     name="ejbdoclet" 
     classname="xdoclet.modules.ejb.EjbDocletTask"
     classpathref="maven.dependency.classpath" />

echoing the path shows that xdoclet-ejb-1.2b2.jar is on the classpath.  It
is defined in my project.xml, but I keep getting this error:

BUILD FAILED
null:22:50: <taskdef> taskdef class xdoclet.modules.ejb.EjbDocletTask cannot
be found

any ideas?  I've been struggling with the xdoclet-maven plugin and have
decided to scrap that effort temporarily and just transplant my current ant
build file into maven.  According to the maven docs, all ant tasks should
transition into maven tasks.  Am I missing something?

Ryan

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


Re: taskdef

Posted by Dan Diephouse <da...@envoisolutions.com>.
Try running "maven -X".  I had a similar problem a couple days ago. 
Turns out I didn't have a jar on my classpath.  I had no idea until I 
turned on debugging and sure enough, there was a ClassNotFound exception 
for my task's dependency.

- Dan

Sonnek, Ryan wrote:
> Using maven beta 9, I can not define a new task for xdoclet.  Here's my
> maven.xml:
> 
>     <property name="mypath" refid="maven.dependency.classpath" />
>     <echo>${mypath}</echo>
> 
>     <taskdef 
>      name="ejbdoclet" 
>      classname="xdoclet.modules.ejb.EjbDocletTask"
>      classpathref="maven.dependency.classpath" />
> 
> echoing the path shows that xdoclet-ejb-1.2b2.jar is on the classpath.  It
> is defined in my project.xml, but I keep getting this error:
> 
> BUILD FAILED
> null:22:50: <taskdef> taskdef class xdoclet.modules.ejb.EjbDocletTask cannot
> be found
> 
> any ideas?  I've been struggling with the xdoclet-maven plugin and have
> decided to scrap that effort temporarily and just transplant my current ant
> build file into maven.  According to the maven docs, all ant tasks should
> transition into maven tasks.  Am I missing something?
> 
> Ryan


-- 
Dan Diephouse
http://junktoast.com
"Everyone knows that Custer died at the Battle of
Little Big Horn. What this book presupposes is....
maybe he didn't?" -- Eli Cash, Royal Tenenbaums



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