> > It did as the antlr plugin provides a much better way to deal with
> > generated sources: you generate your sources to any given directory
and
> > they you modify the the path using the <addPath/> so that you can
> > compile static sources along with generated sources.
> Ah, so someone just needs to do something similar for xdoclet...?

OK, I tried to use xdoclet (latest cvs code) from within maven but this
is the result:
    [ejbdoclet] [ERROR] java.lang.NullPointerException
    [ejbdoclet] [ERROR]         at
org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:326)
    [ejbdoclet] [ERROR]         at
org.apache.commons.logging.LogFactory.getLog(LogFactory.java:401)
    [ejbdoclet] [ERROR]         at
xdoclet.util.LogUtil.getLog(LogUtil.java:26)

If you take a look at where the NPE is thrown you'll see that
contextClassLoader is null. That's very strange! I think maven is
setting a null contextClassLoader.

This is my maven.xml file:

<project xmlns:j="jelly:core" xmlns:m="maven">

        <preGoal name="java:compile">
                <attainGoal name="ejbdoclet"/>
    </preGoal>

        <goal name="ejbdoclet">

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

                <ejbdoclet
                        destdir="src/gen-java"
                        excludedtags="@version,@author"
                        ejbspec="2.0">

                        <fileset dir="${pom.build.SourceDirectory}">
                                <include name="**/service/**Bean.java"
/>
                        </fileset>

                        <session/>
...

Note the taskdef uses maven.dependency.classpath for the classpath. My
remote repository contains the dependency jars and the jars are found as
you can see.

Anyone succeeded in running xdoclet inside maven?

Ara.


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to