Neo4j “No dependency satisfies type class org.neo4j.kernel.api.index.SchemaIndexProvider”

后端 未结 2 498
南方客
南方客 2021-01-15 01:30

Neo4j Community 2.3.3 Linux (Ubuntu 14.04)

Trying to run a Java app which consumes a Kafka topic, process its messages while querying Neo4j, and writes them to anoth

2条回答
  •  长发绾君心
    2021-01-15 01:40

    My suspicion is that you don't have the META-INF/services/org.neo4j.kernel.extension.KernelExtensionFactory files in your jar correctly. Internally Neo4j uses JVM's ServiceLoader to load its components.

    See https://github.com/neo4j/neo4j/blob/2.3/community/lucene-index/src/main/resources/META-INF/services/org.neo4j.kernel.extension.KernelExtensionFactory for the potentially missing piece.

    I assume the right way to solve this is not by changing Gradle's default jar task, instead use a plugin that handles META-INF files correctly. I've made some good experiences with the shadow plugin.

提交回复
热议问题