为neo4j构建gremlin-plugin

时间:2014-02-10 20:29:18

标签: maven neo4j gremlin

我正在尝试安装gremlin-plugin,所以我可以在python中使用neo4django。我试图按照https://github.com/neo4j-contrib/gremlin-plugin中列出的步骤进行操作,但我没有取得任何成功。

我有

  1. 已下载gremlin-plugin-master.zip
  2. unzip gremlin-plugin-master.zip
  3. cd gremlin-plugin-master/
  4. mvn clean package
  5. 此时,我收到一条消息,其中包含以下snippit

    ...
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project neo4j-gremlin-plugin: Compilation failure
    [ERROR] /home/mint/Downloads/gremlin-plugin-master/src/main/java/org/neo4j/server/plugin/gremlin/GremlinPlugin.java:[79,23] method autoStartTransaction in class com.tinkerpop.blueprints.impls.neo4j2.Neo4j2Graph cannot be applied to given types;
    [ERROR] required: boolean
    [ERROR] found: no arguments
    [ERROR] reason: actual and formal argument lists differ in length
    [ERROR] -> [Help 1]
    ....
    

    有人知道这意味着什么吗?在这种情况下,我找不到任何与此类错误相匹配的内容,我不知道从哪里开始调试。

    $ mvn -v
        Apache Maven 3.0.4
        Maven home: /usr/share/maven
        Java version: 1.7.0_51, vendor: Oracle Corporation
        Java home: /usr/lib/jdk1.7.0_51/jre
        Default locale: en_US, platform encoding: UTF-8
        OS name: "linux", version: "3.11.0-12-generic", arch: "amd64", family: "unix"
    

    修改

    克隆回购后,我能够编译。

1 个答案:

答案 0 :(得分:1)

回购的新鲜克隆解决了这个问题。