0

我正在尝试构建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目录丢失了,我无法找到是否需要包含任何插件。

4

1 回答 1

0

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

<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j</artifactId>
<version>1.8.2</version>
</dependency>
于 2013-05-06T06:48:11.573 回答