2013-05-03 81 views
0

我试图建立Neo4J,我已经从GitHub下载源:含neo4j-master.zip 源,建立与neo4j的问题。

当我建立这个我想出了以下错误。试图找出在谷歌,但 不能初步认识的细节,我是新来的这个产品,我敢肯定,我已经错过了与.git东西 任何一个可以帮助我,如果identifing这个问题。

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目录缺失,如果需要包含任何插件,我无法找到它。

+0

请问您为什么从源代码构建? – Nicholas 2013-05-03 18:11:25

+0

我正在尝试设置此产品的构建环境,我正在尝试探索该产品。 – Aslam 2013-05-06 10:12:54

回答

0

没有必要从源头上建立。由于您似乎使用maven,因此您可以将以下内容添加到您的依赖项列表中:

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

感谢tstorms,我可以继续进行,这是因为我还没有克隆从GitHub代码后,我得到了代码克隆我能够继续进行。 – Aslam 2013-05-06 12:07:29

+0

好,但你为什么自己构建代码?你有补丁吗? – tstorms 2013-05-06 12:15:12