如何使用来自 tinkerpop/gremlin 的基础源从 simplegraph 制作 JAR

How to make a JAR from simplegraph with underlying sources from tinkerpop/gremlin

我从 SimpleGraph 制作了一个 JAR,我想在一个单独的项目中使用它。 在我自己的项目中,我可以看到并使用 SimpleGraph 的直接 类,如 ExcelSystem 等,但不能使用底层 类 作为来自 Tinkerpop/Gremlin 的 Vertex 等。 有没有办法将它们包含到 JAR 生成中?

已根据您的问题更新 http://www.bitplan.com/index.php/SimpleGraph-Installation 处的安装说明。

要将 simplegraph 作为项目的单个 jar 依赖项包含在内,您可能需要 运行:

cd com.bitplan.simplegraph/simplegraph-bundle
mvn install -D skipTests -D gpg.skip -P createAssembly

这将创建一个 jar-with-dependencies.jar