I was remiss in not mentioning my workaround, in my maven.xml I have  post goal to fire.  Hackie but effective:

<goal name="hbm-update" description="Updates the hibernate cache mapping as it is currently unsupported by XDoclet2">
<replace dir="${maven.build.dir}/classes" token="cache usage=" value="cache include='non-lazy' usage=">
<include name="**/*.hbm.xml"/>
</replace>
</goal>

On 30-Mar-06, at 1:34 PM, Roland Chan wrote:

Hi gang,

Using this combination successfully for several months :

maven-xdoclet2-plugin-1.0.2
xdoclet-plugin-hibernate-1.0.4-SNAPSHOT.jar

However, now we need to include the @hibernate.cache attribute :

include="all | non-lazy"

This doesn't appear to be supported.  If I am correct, is there an easy way to add this without waiting for the next release?  I can open a JIRA for this issue.  I mean, while I've been a long time xdoclet user(4 years or so) I've never needed to touch this source.


My build failure msg :

BUILD FAILED
File...... /Users/rchan/.maven/cache/maven-xdoclet2-plugin-1.0.2/plugin.jelly
Element... ant:xdoclet
Line...... 31
Column.... 52
java.lang.RuntimeException: java.lang.RuntimeException: @hibernate.cache usage="read-write" include="non-lazy"
in com.casebank.spotlight.domain.AnswerSource (line 25):
include is an invalid parameter name.

For reference, see the latest Hibernate 3 DTD or docs:



Cheers,
Roland

Reply via email to