You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by ertnutler <jm...@hotmail.com> on 2006/07/17 18:01:38 UTC

[m2] xdoclet with MDBs

hey, all.  i have an EJB project that builds an MDB with m2.  my problem is
that when i use xdoclet in conjunction with this project, it doesn't
generate the appropriate deployment descriptors when my MDB bean class
inherits from a superclass.  when i remove the extends clause and replace it
with direct implementation of MessageDrivenBean and MessageListener, it
works fine.  

anybody seen/resolved this problem?  my relevant plugin config is below:

<plugin>
  <groupId>org.codehaus.mojo</groupId>
  <artifactId>xdoclet-maven-plugin</artifactId>
  <executions>
    <execution>
      <phase>generate-sources</phase>
      <goals>
        <goal>xdoclet</goal>
      </goals>
      <configuration>
        <tasks>
          <ejbdoclet verbose="true" force="true" ejbSpec="2.0"
destDir="${project.build.outputDirectory}"
mergeDir="${project.build.sourceDirectory}/../xdoclet">
            <fileset dir="${project.build.sourceDirectory}">
              <include name="**/*MDB.java"/>
            </fileset>
            <deploymentDescriptor displayname="${name}"
destDir="${project.build.outputDirectory}/META-INF"/>

            <oc4j validateXML="false"
destDir="${project.build.outputDirectory}/META-INF"/>
          </ejbdoclet>
        </tasks>
      </configuration>
    </execution>
  </executions>
</plugin>
-- 
View this message in context: http://www.nabble.com/-m2--xdoclet-with-MDBs-tf1955551.html#a5363493
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: [m2] xdoclet with MDBs

Posted by Kenney Westerhof <ke...@apache.org>.
On Mon, 17 Jul 2006, ertnutler wrote:

Hi,

The problem is that xjavadoc (the source scanner for xdoclet) only checks
sources that are present. So you have to add the 'implements ...' directly
to the bean classes, otherwise xjavadoc won't recognize them as bean
classes.

There's one solution though: you can add a <dependency> to the <plugin>
tag for the artifact that contains the parent class.

-- Kenney

>
> hey, all.  i have an EJB project that builds an MDB with m2.  my problem is
> that when i use xdoclet in conjunction with this project, it doesn't
> generate the appropriate deployment descriptors when my MDB bean class
> inherits from a superclass.  when i remove the extends clause and replace it
> with direct implementation of MessageDrivenBean and MessageListener, it
> works fine.
>
> anybody seen/resolved this problem?  my relevant plugin config is below:
>
> <plugin>
>   <groupId>org.codehaus.mojo</groupId>
>   <artifactId>xdoclet-maven-plugin</artifactId>
>   <executions>
>     <execution>
>       <phase>generate-sources</phase>
>       <goals>
>         <goal>xdoclet</goal>
>       </goals>
>       <configuration>
>         <tasks>
>           <ejbdoclet verbose="true" force="true" ejbSpec="2.0"
> destDir="${project.build.outputDirectory}"
> mergeDir="${project.build.sourceDirectory}/../xdoclet">
>             <fileset dir="${project.build.sourceDirectory}">
>               <include name="**/*MDB.java"/>
>             </fileset>
>             <deploymentDescriptor displayname="${name}"
> destDir="${project.build.outputDirectory}/META-INF"/>
>
>             <oc4j validateXML="false"
> destDir="${project.build.outputDirectory}/META-INF"/>
>           </ejbdoclet>
>         </tasks>
>       </configuration>
>     </execution>
>   </executions>
> </plugin>
> --
> View this message in context: http://www.nabble.com/-m2--xdoclet-with-MDBs-tf1955551.html#a5363493
> Sent from the Maven - Users forum at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>

--
Kenney Westerhof
http://www.neonics.com
GPG public key: http://www.gods.nl/~forge/kenneyw.key

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org