Elasticsearch 5 junit hamcrest jar hell


#1

I'm trying to run integration tests with Elasticsearch 5 and randomizedtests. However I get jar hell error with junit-4.10 and hamcrest-all-1.3. This post Jar Hell when staring integration test suggests to exclude hamcrest-all, which I did, but then running Elasticsearch fails with java.lang.NoClassDefFoundError: org/hamcrest/Matchers. What to do?


#2

Found a solution. Removing lucene-test-framework from the dependencies helped.


(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.