Anyone,

 

I can't get ejbdoclet to work in Maven. I think I've seen every post out
there and I still seem to be missing something. I have hibernatedoclet
working without any problems, but ejbdoclet doesn't generate anything. It's
the same code that I was using ejbdoclet to generate classes and descriptors
in ANT, so I'm confident that it works. I just think I have Maven configured
incorrectly. 

 

I'm using the following in the project.properties file:

 

maven.xdoclet.ejbdoclet.ejbspec=2.0

[EMAIL PROTECTED] at ${TODAY},@copyright 

Affiliated Computer Services, [EMAIL PROTECTED] xxx

[EMAIL PROTECTED],@author

#maven.xdoclet.ejbdoclet.mergeDir=

maven.xdoclet.ejbdoclet.verbose=true

maven.xdoclet.ejbdoclet.destDir=${maven.src.dir}

 

maven.xdoclet.ejbdoclet.fileset.0=true

 

maven.xdoclet.ejbdoclet.fileset.0.includes=**/*.java

 

maven.xdoclet.ejbdoclet.deploymentdescriptor.0=false

maven.xdoclet.ejbdoclet.deploymentdescriptor.0.destDir=${maven.src.dir}/META
-INF

 

maven.xdoclet.ejbdoclet.entitybmp.0=false

maven.xdoclet.ejbdoclet.entitycmp.0=false

maven.xdoclet.ejbdoclet.entitypk.0=false

maven.xdoclet.ejbdoclet.homeinterface.0=true

maven.xdoclet.ejbdoclet.localhomeinterface.0=true

maven.xdoclet.ejbdoclet.localinterface.0=true

maven.xdoclet.ejbdoclet.remoteinterface.0=true

maven.xdoclet.ejbdoclet.remoteinterface.0.pattern={0}Remote

maven.xdoclet.ejbdoclet.session.0=false

maven.xdoclet.ejbdoclet.utilobject.0=false

maven.xdoclet.ejbdoclet.valueobject.0=false

maven.xdoclet.ejbdoclet.strutsform.0=false

 

I have these XDoclet dependencies in my project.xml:

 

    <dependency>

        <groupId>xdoclet</groupId>

        <artifactId>xdoclet</artifactId>

        <version>2.0</version>

    </dependency>

    <dependency>

        <groupId>xdoclet</groupId>

        <artifactId>xdoclet-ejb-module</artifactId>

        <version>1.2.3</version>

    </dependency>

    <dependency>

        <groupId>xdoclet</groupId>

        <artifactId>xdoclet-jboss-module</artifactId>

        <version>1.2</version>

    </dependency>

 

And this is my maven.xml:

 

<project

   xmlns:j="jelly:core"

   xmlns:maven="jelly:maven"

   xmlns:ant="jelly:ant"

  >

 

    <preGoal name="java:compile">

        <attainGoal name="xdoclet:ejbdoclet"/>

    </preGoal>

 

</project>

 

My dir structure is:

 

+- ear/

   +- src/

   |  +- main/

   |  |  +- application/

   |  |  |  +- META-INF/

   |  |  +- ejb/

   |  |  |  +- META-INF/

   |  |  +- java/

   |  |  |  +- com

   |  |  |  |  +- ...

   |  |  +- resources/

   |  +- test/

   |     +- java/

   |        +- com

   |           +- ...

   +-target/

   +- maven.xml

   +- project.xml

   +- project.properties

 

When I run "maven -X xdoclet:ejbdoclet" it says "BUILD SUCCESSFUL", but
nothing is generated. Does anybody have any idea about what I'm doing
incorrectly?

 

Thanks,

Ken

CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is
for the sole use of the intended recipient(s) and may contain confidential
and privileged information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply e-mail and destroy all copies of the original
message.

Reply via email to