lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthias Epheser <matthias.ephe...@gmx.at>
Subject maven plugin for source generation out of schema.xml
Date Thu, 22 Apr 2010 16:17:26 GMT
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


Mime
View raw message