The code within {{org.hibernate.search.util.common.jar.impl.JarUtils#jarOrDirectoryPath}} only works for “normal” JARs located on where the filesystem classes directory is the root of the JAR (code source location protocol = file); it will not work for Spring-boot’s JARs in particular, where classes are located in {{/BOOT-INF/classes}} within other JARs the JAR (code source location protocol = jar)
This makes the feature useless in a lot of applications, e.g. for Quarkus or Spring Boot’s fat JARs, and maybe also Quarkus.
See also:
* [https://github.com/anothergoodguy/spring-data-hibernate-search/pull/1|https://github.com/anothergoodguy/spring-data-hibernate-search/pull/1|smart-link] |
|