hibernate/hibernate-search — pull request #301 by Sanne (2012-05-31 18:13:54+00:00)
Title: HSEARCH-1001

I've built on Davide's work to make a JMS integration test, which was sadly missing; I didn't integrate his pull directly as we had Maven trouble which I could reproduce but he couldn't..
so I'd be glad if someone else could now give it a try.

The biggest nightmare was to get Maven resolving the correct SNAPSHOT for tests; this has bitten us before even on the existing AS-integration test, and should be fixed with these changes.

What happened is that Maven would run the integration tests using a `hibernate-search-engine` or `hibernate-search-orm` by picking it from your local repository, but depending on the moon position it might pick a different SNAPSHOT than the one you're building, effectively:
- reporting ok builds for broken builds, or
- reporting failed builds for correct code

I could spot this as it was occasionally loading a snapshot from pre-Lucene 3.6 upgrade and the stack would refer to an invalid method (which was long removed), invalid as we where overriding a method which is now final in Lucene 3.6.