Hi, I'm trying to generate ejb sources using xdoclet and m2 and get no result. here's the relevant part of my pom.xml:
<build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>xdoclet-maven-plugin</artifactId> <version>1.0-alpha-2</version> <executions> <execution> <phase>generate-sources</phase> <goals> <goal>xdoclet</goal> </goals> <configuration> <tasks> <mkdir dir="${project.build.directory}/generated-sources/xdoclet" /> <ejbdoclet destdir="${project.build.directory }/generated-sources/xdoclet" excludedtags="@version,@author" ejbspec="2.1" verbose="yes" force="true"> <fileset dir="${basedir}/src/main/java" includes="**/* Ejb.java" /> <packagesubstitution packages="ejb" substituteWith="common" /> <remoteinterface pattern="{0}Remote" /> <localinterface pattern="{0}Local" /> <homeinterface /> <localhomeinterface /> <service-endpoint pattern="{0}Endpoint" destDir="${project.build.outputDirectory}"> <packagesubstitution packages="ejb" substituteWith="endpoint" /> </service-endpoint> <deploymentdescriptor destdir="${ project.build.outputDirectory}/META-INF" /> <jboss version="4.0" destdir="${ project.build.outputDirectory}/META-INF" /> </ejbdoclet> </tasks> </configuration> </execution> </executions> </plugin> </plugins> </build> The result from "mvn generate-sources" is: ... [INFO] [xdoclet:xdoclet {execution: default}] [INFO] Initializing DocletTasks!!! [INFO] Executing tasks Dec 21, 2005 9:44:37 AM xdoclet.XDocletMain start INFO: Running <remoteinterface/> Dec 21, 2005 9:44:37 AM xdoclet.XDocletMain start INFO: Running <localinterface/> Dec 21, 2005 9:44:37 AM xdoclet.XDocletMain start INFO: Running <homeinterface/> Dec 21, 2005 9:44:37 AM xdoclet.XDocletMain start INFO: Running <localhomeinterface/> Dec 21, 2005 9:44:37 AM xdoclet.XDocletMain start INFO: Running <service-endpoint/> Dec 21, 2005 9:44:37 AM xdoclet.XDocletMain start INFO: Running <deploymentdescriptor/> Generating EJB deployment descriptor (ejb-jar.xml). Dec 21, 2005 9:44:37 AM xdoclet.XDocletMain start INFO: Running <jboss/> Generating jboss.xml. [INFO] Executed tasks ... The ejbdoclet task does run, but only the deployment descriptors are created (empty). What am I doing wrong? (the same ejbdoclet task works perfectly fine in an ant build file) Thanks, Amir