Wednesday 7 September 2016

Adding Hibernate Search Capabilities To A WildFly 10 Project Not Using Maven

A very quick note for people having to add hibernate search functionality to a legacy project that does not use maven.

Maven makes it so easy when I work on projects where I don't have it I feel like slitting my wrists on a fine spring morning like today. Jokes aside it is not too difficult.

Download the latest Hibernate Search Full distribution zip file from Sourceforge.    

Once downloaded and extracted add only what you need. A minimal at least would be the following dependencies.


  1. hibernate-search-engine-5.5.4.Final.jar
  2. hibernate-search-orm-5.5.4.Final.jar
  3. lucene-core-5.3.1.jar
  4. tika-core-jar-1.4.jar
  5. tika-parsers-1.4.jar
  6. lucene-analyzers-common-5.3.1.jar
This should get you running but you might need some other jars in the archives, just don't add everything in the extracted archive as you might just run into conflicts with existing libraries. So if you are having problems deploying you probably got some jar conflict. Someone reported this problem yesterday. So slow and easy one step at time to avoid frustration here.

Note that these are found under the dist\lib folder of the extracted archives.