I did include xjavadoc in my maven dependency as follows:
         <dependency>
            <id>xdoclet:xdoclet-xjavadoc</id>
            <version>1.2b2</version>
        </dependency>

I even tried to change the code in /core/src/xdoclet/DocletTask class, line
462 to
    new XDocletMain().start(super.getXJavaDoc());

But then it throws me :
    java.lang.NoSuchMethodError:
xjavadoc.ant.XJavadocTask.getXJavaDoc()Lxjavadoc/XJavaDoc;
        at xdoclet.DocletTask.start(DocletTask.java:462)

It looks like that the method is not defined anywhere in
xjavadoc.ant.XJavadocTask either.

Lillian

> Hi,
>
> I think there is an error in the xdoclet source code.

I think you're wrong :-)

>  In
> /core/src/xdoclet/DocletTask class,  line 462. It has something like
below:
>     new XDocletMain().start(getXJavaDoc());
> Where this getXJavaDoc() is not defined anywhere.

Actually, it's defined in xjavadoc.ant.XJavadocTask (line 43), which
DocletTask extends.

> Thus when I call the
> ejbdoclet goal from maven, It gives me noSuchMethod error.
>
> Does anyone have the same problem? How do I fix it?

The method's been in there since XJavadoc 1.0.1, as used by XDoclet 1.2
beta 3.  If you're getting a NoSuchMethod error, it sounds like it's not
finding the XJavadoc classes.  I'm not entirely sure it's needed (as I
don't use Maven much myself), but have you defined a dependency on
xjavadoc in your project.xml?


Andrew.




-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to