Details
-
Type:
New Feature
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
Use-case: Several plugins can generate metadata (xml-descriptors) for several versions of product. For example hibernate plugin can generate both H2 and H3 version of mappings which are differs a lot. Hibernate plugin uses superset of tags so nobody restricts users to use @hibernate.jsc-cache for H3 mapping generation. In this case we take incorrect mapping file.
So my proposal is automatically validate generated metadata file using dtd. This allows us reduce number of errors on deployment time.
Applicable for any xml-generated plugin (hibernate, struts, ...)
Of cource this feature should be customizable. In property can be called "validate" (Is it ok??)
maven.xdoclet.0.hibernate.destdir=$
{maven.build.dest}/$
{package}maven.xdoclet.0.hibernate.version=3.0
maven.xdoclet.0.hibernate.validate=true
I think ( at least ) in hibernate case offending tags shall not be used
in generation of DD for different versions. But validation is nice feature.
It could reside in generama/xdoclet combo