You need to specify the xdoclet directory as a resource dir:
<resource> <directory>src/main/resources</directory> </resource> <resource> <directory>${project.build.outputDirectory }/generated-sources/xdoclet</directory> </resource> and because at that point you're overriding the resources element you should put in the default src/main/resources as well. HTH Jorg On 5/26/06, ozeebee <[EMAIL PROTECTED]> wrote:
the hbm.xmls are correctly generated in the /target/genereated-resources/xdoclet directory. then I expect maven to include all these resources in my classpath and in my package but it does not. Here's my (part of) my xdoclet config: ... <!-- Generate Hibernate files --> <hibernatedoclet destdir="${xdoclet.generatedResources}" mergedir="${basedir}/src/xdoclet" verbose="true" force="false"> <fileset dir="${basedir}/src/main/java"> <include name="**/model/*.java"/> </fileset> <hibernate destdir="${xdoclet.generatedResources}" version="3.0"/> </hibernatedoclet> ... where ${xdoclet.generatedResources} property is defined in my parent project pom as : <xdoclet.generatedResources>${project.build.directory }/generated-resources/xdoclet</xdoclet.generatedResources> thanks for your time Ozeebee -- View this message in context: http://www.nabble.com/-m2-+XDoclet+generated+resources+problem-t1685663.html#a4576681 Sent from the Maven - Users forum at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]