Integration Testing Your SOLR Index with Maven
Introduction The following article describes how to automatically (via Maven):
prepare the SOLR WAR dependency to log with log4j and repack it as part of the release artifact start a SOLR instance with the resources in /src/main/resources/ as SOLR_HOME
import data into SOLR by running a Shell script run integration tests on that SOLR instance via SolrJ package an artifact containing the resources in a SOLR convenient structure; including two SOLR WAR artifacts: one as provided via Maven and one repackaged with log4j support; and including any custom libraries that go into SOLR_HOME Resulting in a good foundation for a Continuous Integration setup.
[Mehr]