You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Gaute Lote <ga...@gmail.com> on 2006/12/12 16:14:19 UTC

Maven 2 and xdoclet

Hi,

I'm trying to get xdoclet to work with maven, but it won't generate source
for some of my beans.
The beans it won't generate source for all have this tag

* @ejb.env-entry name="ejb/BeanFactoryPath" type="java.lang.String"
* value="applicationContext.xml"

I'm trying to port from an extisting ant build which uses xdoclet
1.2.3which generates code for all the beans, but for som reason
this fails with maven.

My xdoclet plugin

<plugin>
<artifactId>xdoclet-maven-plugin</artifactId>
<groupId>org.codehaus.mojo</groupId>
<version>1.0-alpha-2</version>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>xdoclet</goal>
</goals>
<configuration>
<tasks>
<ejbdoclet verbose="true" force="true" ejbSpec="2.1" destDir="${
project.build.directory}\generated-sources\xdoclet">
<fileset dir="${project.build.sourceDirectory}">
<include name="no/ergo/ergosolutions/mff/sis2/ejb/*Bean.java"/>
<include name="no/ergo/lm/middel/fasade/ejb/*Bean.java"/>
<include name="no/ergo/lm/middel/tjenester/ejb/*Bean.java"/>
</fileset>
<packageSubstitution packages="ejb" substituteWith="interfaces"/>
<homeinterface destDir="${project.build.directory
}/generated-sources\xdoclet"/>
<remoteinterface destDir="${project.build.directory
}/generated-sources\xdoclet"/>
<localhomeinterface destDir="${project.build.directory
}/generated-sources\xdoclet"/>
<localinterface destDir="${project.build.directory
}/generated-sources\xdoclet"/>
<utilobject cacheHomes="true" destDir="${project.build.directory
}/generated-sources\xdoclet"/>
<deploymentdescriptor destDir="${project.build.outputDirectory}/META-INF"/>
</ejbdoclet>
</tasks>
</configuration>
</execution>
</executions>
</plugin>


regards
Gaute