无法通过gremlin外壳安装gremlin-neo4j [英] Unable to install gremlin-neo4j through gremlin shell

查看:316
本文介绍了无法通过gremlin外壳安装gremlin-neo4j的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,我正在阅读有关TinkerPop 3.0内容入门的教程.我已经获得了与TinkerGraph一起使用的基本API,并且我正继续尝试与本地Neo4j实例(社区2.2.2)进行接口.我正在这里浏览本教程:

So, I'm going through the tutorial on getting started with the TinkerPop 3.0 stuff. I've gotten the basic API working with the TinkerGraph stuff, and I'm moving on to try and interface with my local Neo4j instance (Community 2.2.2). I'm working through the tutorial here:

http://tinkerpop.incubator.apache.org/docs /3.0.0.M9-incubating/

但是,neo4j-gremlin插件似乎不存在.都不行:

but, the neo4j-gremlin plugin does not appear to exist as documented. Neither the gradle line:

compile group : 'org.apache.tinkerpop', name: 'neo4j-gremlin', version: '3.0.0.M9-incubating'

,也没有通过gremlin groovy shell进行以下尝试:

, nor the following attempt through the gremlin groovy shell:

gremlin> :plugin list
==>tinkerpop.server[active]
==>tinkerpop.gephi
==>tinkerpop.utilities[active]
==>tinkerpop.sugar
==>tinkerpop.tinkergraph[active]
gremlin> :install org.apache.tinkerpop neo4j-gremlin 3.0.0.M9-incubating
Error grabbing Grapes -- [unresolved dependency: org.apache.tinkerpop#neo4j-gremlin;3.0.0.M9-incubating: not found]
Display stack trace? [yN] y
java.lang.RuntimeException: Error grabbing Grapes -- [unresolved     dependency: org.apache.tinkerpop#neo4j-gremlin;3.0.0.M9-incubating: not found] 

似乎可以工作,因为没人能解决依赖关系.如果将M9更换回至少M7,或者我尝试从3.0.0-SNAPSHOT抓取,问题仍然存在. TinkerPop刚刚放弃了对Neo4j的支持并且没有更新其教程吗?

seem to work, because neither one can resolve the dependency. The problem persists if the M9 is replaced back to at least M7, or if I try and grab from 3.0.0-SNAPSHOT. Has TinkerPop just dropped support for Neo4j and has not updated their tutorials?

推荐答案

我想文档和Neo4j在正式发布方面的地位之间存在一些差异. TinkerPop在Apache Software Foundation下开始发布版本时(鉴于许可冲突),Neo4j已从M7周围的存储库中删除. M9版本发布后,由于解决了许可证问题,将其重新添加到了存储库中.就目前情况而言,Apache已批准Neo4j的包装,因此可以将其正式包含在下一个应该是GA的下一版本中.

I guess there's some discrepancy between documentation and where Neo4j stands in terms of official release. Neo4j was removed from the repository around M7 at the time TinkerPop started making releases under the Apache Software Foundation (given license conflicts). It was added back to the repository after the M9 release as license issues were resolved. As it stands now, there is approval from Apache on the packaging of Neo4j thus allowing it to be officially included as part of the next release which should be GA.

请注意,Neo4j尚未更改其许可结构.它仍然基于GPL.但是,GPL的依赖项未与TinkerPop二进制发行版打包在一起,并且源发行版也没有GPL的依赖项.实际上,这是一个有趣的模型,并且需要与所有各方进行相当多的合作才能完成.

Note that Neo4j has not changed its licensing structure for this to happen. It remains GPL-based. The GPL'd dependencies however are NOT packaged with TinkerPop binary distributions and the source distributions are free of GPL dependencies as well. It's an interesting model actually and took a fair bit of collaboration with all parties to accomplish.

解决此问题实际上很容易,但是涉及从源代码构建TinkerPop.可以使用以下命令:

It is actually pretty easy to work around this issue, but it involves you building TinkerPop from source. The following commands should do it:

git clone https://github.com/apache/incubator-tinkerpop.git
cd incubator-tinkerpop
git checkout tags/3.0.0-incubating-rc1
mvn clean install -DskipTests -DincludeNeo4j

请注意,3.0.0-incubating-rc1是GA的当前候选版本,供应商目前正在针对它们的实现进行测试.我假设您已按照TinkerPop 3文档中的说明配置了grapeConfig.xml文件,这意味着该文件已配置为查看本地Maven .m2目录.如果是这样,那应该可以使您的:install命令以及其他依赖项管理工具正常工作.

Note that 3.0.0-incubating-rc1 is the current release candidate for GA that vendors are testing their implementations against right now. I assume that you've configured your grapeConfig.xml file as described in the TinkerPop 3 documentation, which would mean that it is configured to look at your local Maven .m2 directory. If so, that should get your :install command to work as well as other dependency management tools.

这篇关于无法通过gremlin外壳安装gremlin-neo4j的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆