在 neo4j 3 中放置扩展依赖项的位置

Where to put extension dependencies in neo4j 3

我应该将插件依赖项放在 neo4j 3 中的什么位置(而不是实际的插件 jar)。

在 neo4j 2 中有一个 lib 文件夹,系统将从中加载 jar,但它不再存在。

我试过将它们放在插件文件夹中,但它要求我添加 jars 的每个依赖项,这变得难以管理,而且将它们放在那里似乎也很奇怪。

我试过将它们放在 neo4j bin 目录中,但未检测到它们。

我试过向 vmoptions 文件添加命令行参数,并使用通配符指向我创建的 lib 文件夹,但这也没有用。

使用maven shade plugin将所有的依赖包(除了范围为test或provided的)打包到jar中。

我认为文档刚刚更新(尽管我可能错过了)。它说

Having built your code, the resulting jar file (and any custom dependencies) should be placed in the $NEO4J_SERVER_HOME/plugins directory. We also need to tell Neo4j where to look for the extension by adding some configuration in neo4j.conf:

所以事实证明它们应该放在插件文件夹中,或者你按照 Daniela 所说的那样构建一个 fat jar。

编辑:出于多种原因我最终得出结论,其中包括使用与版本 2.x.

具有相同目录结构的服务器版本