用neo4j构建问题。

时间:2013-05-03 11:45:48

标签: java build neo4j

我正在尝试构建Neo4J,我已经从github下载了源代码:neo4j-master.zip 包含来源,

当我构建这个时,我遇到了以下错误。试图在谷歌找到但是 无法提供相关细节,我是这个产品的新手,我确定我错过了一些东西 与.git相关的任何人都可以在识别此问题时帮助我。

Messages from Maven:

[INFO] Neo4j ............................................. SUCCESS [8.300s]
[INFO] Licensing configuration ........................... SUCCESS [3.338s]
[INFO] Neo4j - Graph Database Kernel ..................... FAILURE [2.371s]
.
.
.
.
[ERROR] Failed to execute goal pl.project13.maven:git-commit-id-plugin:2.1.4:rev
ision (generate-git-hash) on project neo4j-kernel: .git directory could not be f
ound! Please specify a valid [dotGitDirectory] in your pom.xml -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
xception
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command

我正在使用mvn clean install命令启动构建。似乎缺少.git目录,我无法找到是否需要包含任何插件。

1 个答案:

答案 0 :(得分:0)

无需从源代码构建。由于您似乎使用了maven,因此您可以在依赖列表中添加以下内容:

<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j</artifactId>
<version>1.8.2</version>
</dependency>