Hi,
the easiest would be to just include the jar file. Is there any particular reason why you don't want to include it into the UI?
Otherwise two options come to my mind
- Implement a xml configuration for Hibernate Search. It should be straight forward and you would make other people happy as well - https://www.hibernate.org/443.html ;-)
- Use the maven-shade plugin to include just the annotations you need into your UI jar. This approach of course is only working in case you are using maven as build tool and one has to carefully think about the implications.
--Hardy