You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Matthias Epheser <ma...@gmx.at> on 2010/04/22 18:17:26 UTC

maven plugin for source generation out of schema.xml

Hi there,

I just uploaded a first version of a maven plugin to 
https://issues.apache.org/jira/browse/SOLR-1888.

I was tired of copy pasting the schema.xml to a java class and create 
fields and @Field annotations in every project by hand ;) . So this 
plugin works like xsd source generators and changes only have to occur 
in the schema.xml.

If you have a solrj maven project and an annotated bean representing the 
  schema and all fields, it will generate this bean automatically during 
generate-sources phase and add.

Generation is still very simple and needs some health checks (valid java 
names out of field names etc.) but you should get the picture.

If this sounds interesting to people, please give it a try and add your 
opinions...

regards,
matthias



PS: Tried to send this mail to dev.lucen before without success from 
another account , so please forgive some doublepost if it arrives 
eventually later...


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org