maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Perham" <>
Subject RE: [m2] XDoclet generated resources problem
Date Fri, 26 May 2006 13:40:33 GMT
Are the hbm.xmls being copied to target/classes or target/test-classes?
We generate our hbm.xmls to ${} and it
works fine.

<hibernatedoclet destdir="${}"
  excludedtags="@version,@author,@todo,@see,@desc" verbose="true">
  <fileset dir="${}">
    <include name="**/beans/*.java" />
  <hibernate version="3.0" destdir="${}"/>

The duplicate destdir attribute is required to work around an Xdoclet
bug in multimodule builds.

-----Original Message-----
From: ozeebee [] 
Sent: Friday, May 26, 2006 3:49 AM
Subject: [m2] XDoclet generated resources problem


I'm using the XDoclet plugin to generate several sources and (hibernate)
resources (mapping files *.hbm.xml).
The sources are generated in /target/generated-sources/xdoclet and the
resources are created in /target/generated-resources/xdoclet as
For some reason, the resources files are NOT being put in the Test
classpath and NOT included in the package (while the sources do) !!?!

Any good reason for that ??
Of course, I have added a <build/resources/resource> element to my pom
to work around this but why the hell do these xml files get ignored ?
Is it a bug ? 

Any explanation would be welcome.
thanks in advance


View this message in context:
Sent from the Maven - Users forum at

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message