Hi nathan,
 
the thing is, maven does not complain about missing dependencies ( for instance, the jmx-module is needed, but if you don't add its jar to the list of dependencies, maven won't tell !!) <-- maybe this is even the cause you're experiencing failure to generate the interfaces...
 
running 'maven -X ...' will probably warn you saying:  "missing 'xxx.jar' " but it will be easy to miss
 
 
I myself have used ejbdoclet in combination with middlegen. I personally didn't like to use the ejbdoclet plugin. Instead, I used
the ant task from within maven:
 
- relevant dependencies in project.xml are included in deps.txt
- relevant properties are included in props.txt
 
Since I used the Ant task, I needed to define some extra goals in the maven.xml

 
- relevant goals are included in goals.txt
 
I really hope this helps getting you on the road.
 
Since I'm new at this list, please excuse me if this is totally off topic...
 
Dennis Geurts
 

 
On 6/16/05, Nathan Sowatskey <[EMAIL PROTECTED]> wrote:
Hi

I have tried to follow the examples that I can find for Maven and
xdoclet, and I have it apparently running, that it doesn't complain
about dependencies, but it doesn't seem to be processing my EJB to
generate the interfaces and deployment descriptors that I expect.

I can get this to work with Ant, but not Maven it seems.

Does anyone have any pointers to a project that I could peruse to get
some hints please? I looked at geronimo, but it doesn't seem to employ
ejbdoclet.

Many thanks

Nathan

--
Nathan Sowatskey - Technical Leader, NMTG CTO Engineering - Desk
+44-208-824-4259/+1-408-527-2595 - Mobile +44-7740-449794 - AIM id
NathanCisco - [EMAIL PROTECTED]

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


        <!-- XDoclet dependencies -->
        <dependency>
            <groupId>servletapi</groupId>
            <artifactId>servletapi</artifactId>
            <version>2.3</version>
            <type>jar</type>
        </dependency>
        <dependency>
            <groupId>xdoclet</groupId>
            <artifactId>xdoclet</artifactId>
            <version>1.2</version>
            <type>jar</type>
        </dependency>
        <dependency>
            <groupId>xdoclet</groupId>
            <artifactId>xdoclet-web-module</artifactId>
            <version>1.2</version>
            <type>jar</type>
            <url>http://xdoclet.sf.net/</url>
        </dependency>
        <dependency>
            <groupId>xdoclet</groupId>
            <artifactId>xdoclet-ejb-module</artifactId>
            <version>1.2</version>
            <type>jar</type>
            <url>http://xdoclet.sf.net/</url>
        </dependency>
        <dependency>
            <groupId>xdoclet</groupId>
            <artifactId>xdoclet-jmx-module</artifactId>
            <version>1.2</version>
            <type>jar</type>
            <url>http://xdoclet.sf.net/</url>
        </dependency>
        <dependency>
            <groupId>xdoclet</groupId>
            <artifactId>xjavadoc</artifactId>
            <version>1.0.2</version>
            <type>jar</type>
            <url>http://xdoclet.sf.net/</url>
        </dependency>
        <dependency>
            <groupId>xdoclet</groupId>
            <artifactId>maven-xdoclet-plugin</artifactId>
            <version>1.2</version>
            <type>plugin</type>
            <url>http://xdoclet.sf.net/</url>
        </dependency>
        <dependency>
            <groupId>xdoclet</groupId>
            <artifactId>xdoclet-jboss-module</artifactId>
            <version>1.2</version>
            <type>jar</type>
        </dependency>
gen.dir=${maven.build.dir}/middlegen/cmp20

ejb.dir=${maven.build.dir}/xdoclet/ejbdoclet
ejb.meta.dir=${maven.build.dir}/xdoclet/ejb

xdoclet.ejbdoclet.mergedir=${maven.src.dir}/merge/xdoclet/ejbdoclet

maven.eclipse.classpath.include=target/middlegen/cmp20/,target/xdoclet/ejbdoclet

maven.war.webapp.dir=${maven.build.dir}/xdoclet/webdoclet
maven.xdoclet.webdoclet.0=true
maven.xdoclet.webdoclet.0.destDir=${maven.build.dir}/xdoclet/webdoclet/WEB-INF
maven.xdoclet.webdoclet.0.mergeDir=${maven.src.dir}/merge/xdoclet
maven.xdoclet.webdoclet.deploymentdescriptor.0.destDir=${maven.build.dir}/xdoclet/webdoclet/WEB-INF
maven.xdoclet.webdoclet.deploymentdescriptor.0.mergeDir=${maven.src.dir}/merge/xdoclet
  <preGoal name="java:compile">
        <!-- mkdir dir="${maven.build.dir}/xdoclet/webdoclet/WEB-INF" /-->
        <!-- attainGoal name="xdoclet:webdoclet" /-->
        <attainGoal name="ejbdoclet" />
  </preGoal>


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


          
      <ant:mkdir dir="${ejb.dir}"/>

      <ejbdoclet
         destdir="${ejb.dir}"
         excludedtags="@version,@author"
         ejbspec="2.0">

       <packageSubstitution packages="ejb" substituteWith="ejb.interfaces"/>

        <ant:fileset>
                <ant:setProperty name="dir" 
value="${pom.build.sourceDirectory}"/>
                <include name="**/ejb/**/*Bean.java" />
        </ant:fileset>

        <entitypk/>
                
                      
        <echo>Creating LocalHome Interfaces</echo>
        <localhomeinterface>
                    <packageSubstitution packages="ejb" 
substituteWith="ejb.interfaces"/>
        </localhomeinterface>        


        <echo>Creating Local Interfaces</echo>
        <localinterface
                mergeDir="${xdoclet.ejbdoclet.mergedir}/local">
                    <packageSubstitution packages="ejb" 
substituteWith="ejb.interfaces"/>
        </localinterface>
      </ejbdoclet>

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

Reply via email to