I am currently using xdoclet together with maven. In my maven.xml I have the
following to specify the attribute for ejbdoclet :

<xdoclet:ejbdoclet
            classpathref = "maven.dependency.classpath"
            destdir      = "${maven.build.dir}/generate"
            ejbspec      = "2.0"
            excludedtags = "@version,@author"
            force        = "true"
            mergedir     = "${maven.src.conf.dir}/mergedir/xdoclet"
            verbose      = "no"
        >

     <!-- includes all XXXEJB.java files in the ${maven.src.dir}/java
directory -->

            <fileset dir = "${maven.src.dir}/java">
                <include name = "**/*EJB.java"/>
            </fileset>


     <!-- change the entity package to entity/interfaces -->
            <packageSubstitution packages="entity"
substituteWith="entity.interfaces" />
     <!-- changed the session package to session/interfaces -->
            <packageSubstitution packages="session"
substituteWith="session.interfaces" />

      <!-- activate a list of files that xdoclet must generate or react
to -->
            <localinterface/>
            <localhomeinterface/>
            <remoteinterface/>
            <homeinterface/>
            <utilobject/>
            <entitypk/>
            <entitybmp/>
            <enitycmp/>
            <dataobject/>

     <!-- specifies the location and the name for the deployment
descriptor -->

            <deploymentdescriptor
                destdir = "${maven.build.dir}/META-INF/${jarname}"
                destinationFile = "${jarname}-ejb-jar.xml"
            />

     <!-- jboss attributes -->
            <jboss version="3.0"
                xmlencoding = "UTF-8"
                destdir     = "${maven.build.dir}/META-INF/${jarname}"
                validateXML = "false"
            />

      </ejbdoclet>

Then I call the xdoclet:ejbdoclet goal to generate required classes :
     <attainGoal name="xdoclet:ejbdoclet"/>

However, all classes are generated fine, but the jboss.xml is not generated.
Thus it causes the build to fail. I have check the <ejbdoclet ../> under Ant
Tag Reference section on the Xdoclet website, jboss is listed as a nested
element for it.

Does anyone know what could possibly cause the jboss.xml fail to get
generated and how could I go and fix it?

Thanks a dozen,
Lillian



-------------------------------------------------------
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