How to find out which library (dependency) writes a file to the output folder when building a project?
Answered
The reason for this exception (https://stackoverflow.com/questions/59104991/provider-org-hibernate-jpa-event-spi-jpaintegrator-not-found) lies in the “org.hibernate.integrator.spi.Integrator” file. When compiling a project, the Intellij IDEA creates this file in the “/home/… …/out/production/resources/META-INF/services/” directory. It has only one line: “org.hibernate.jpa.event.spi.JpaIntegrator”. For some reason, it turns out to contain a class that is really absent in library “hibernate-core-5.4.9.Final”?
Please sign in to leave a comment.
What is the project type? Do you use Maven/Gradle in project?
IDE copies all files from resources directories into module's output directory. E.g. if there are files in META-INF/services inside project they appear in corresponding output directory.
Thanks!!!