Hi guys, I just discovered a bug in the Maven plugin, version 2.1. The error is related to the generation of XDoclet tags when auto-generating a java class from a hbm.xml file. The error is at line 157 of the plugin.jelly under the %MAVEN_HOME%/cache/maven.middlegen-plugin-2.1, precisely the following line:

<jelant:setProperty name="getXDocletTags" value="${context.getVariable(hibernate_getxdoclettags)}"/>

should be replaced with:

<jelant:setProperty name="genXDocletTags" value="${context.getVariable(hibernate_getxdoclettags)}"/>

(see the diff between gen and get). Broadly, I think there has been a typo misunderstanding when this property was implemented. The correct spell should be genxdoclettags, which also would affect the following property to be specified in the project.properties file:

maven.middlegen.0.hibernate.getxdoclettags=true

to be

maven.middlegen.0.hibernate.genxdoclettags=true

At the moment, if you want your xdoclet tags generated for the auto-generated POJOs, you'll need to make the change in the plugin.jelly file and then specify the property with the getxdoclettags=true rather than genxdoclettags. I'd suggest for the next release to change this mispelling to the proper one.

Hope this helps,

Marco

---
[This E-mail has been scanned for viruses but it is your responsibility to maintain up to date anti virus software on the device that you are
currently using to read this email. ]



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
middlegen-user mailing list
middlegen-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/middlegen-user

Reply via email to