2013-05-03 55 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