Error in Maven-plugin

"Marco Tedone" <[email protected]> Thu, 4 Aug 2005 23:33:09 +0100
Newsgroups gmane.comp.java.ejb.middlegen.user
Message-ID <009001c59944$7e0d64c0$0302a8c0@jemoserver>
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