2013-10-23 70 views
0

我正在嘗試從https://github.com/neo4j/neo4j.git構建Neo4j。我運行Ubuntu 13.10(32位),Maven 3.0.4和Oracle JDK 1.7.0_45。從源代碼構建Neo4j社區版時發生Maven錯誤

我建立它的父POM下,使用

$ mvn clean install -DminimalBuild -Dlicense.skip=true 

構建失敗,但是:

enter code here------------------------------------------------------------------------ 
[INFO] Building Neo4j - JMX support 2.0-SNAPSHOT 
[INFO] ------------------------------------------------------------------------ 
[INFO] ------------------------------------------------------------------------ 
[INFO] Reactor Summary: 
[INFO] 
[INFO] Neo4j ............................................. SUCCESS [0.683s] 
[INFO] Licensing configuration ........................... SUCCESS [1.783s] 
[INFO] Neo4j - Graph Database Kernel ..................... SUCCESS [24.188s] 
[INFO] Neo4j - JMX support ............................... FAILURE [0.033s] 
[INFO] Neo4j - Usage Data Collection ..................... SKIPPED 
[INFO] Neo4j - Graphviz generation ....................... SKIPPED 
[INFO] Neo4j - Lucene Index .............................. SKIPPED 
[INFO] Neo4j - Graph Algorithms .......................... SKIPPED 
[INFO] Neo4j - Graph Matching ............................ SKIPPED 
[INFO] Neo4j - Cypher Compile 1.9 ........................ SKIPPED 
[INFO] Neo4j - Cypher Compile 2.0 ........................ SKIPPED 
[INFO] Neo4j - Cypher .................................... SKIPPED 
[INFO] Neo4j Community ................................... SKIPPED 
[INFO] Neo4j Community ................................... SKIPPED 
[INFO] Neo4j - Generic shell ............................. SKIPPED 
[INFO] Neo4j Examples .................................... SKIPPED 
[INFO] Neo4j Server API .................................. SKIPPED 
[INFO] Neo4j Server ...................................... SKIPPED 
[INFO] Neo4j Server Examples ............................. SKIPPED 
[INFO] Neo4j - Server Plugin Tests ....................... SKIPPED 
[INFO] Neo4j Community Build ............................. SKIPPED 
[INFO] Neo4j - Graph DB Monitoring and Management tools .. SKIPPED 
[INFO] Neo4j Advanced .................................... SKIPPED 
[INFO] Neo4j Advanced Server ............................. SKIPPED 
[INFO] Neo4j Advanced Build .............................. SKIPPED 
[INFO] Neo4j - Communication Package ..................... SKIPPED 
[INFO] Neo4j - Clustering Infrastructure ................. SKIPPED 
[INFO] Neo4j - Consistency Checker ....................... SKIPPED 
[INFO] Neo4j - Backup Tool ............................... SKIPPED 
[INFO] Neo4j - High Availability ......................... SKIPPED 
[INFO] Neo4j Enterprise .................................. SKIPPED 
[INFO] Neo4j Enterprise Server ........................... SKIPPED 
[INFO] Neo4j - Enterprise Performance Tests .............. SKIPPED 
[INFO] Neo4j Enterprise Build ............................ SKIPPED 
[INFO] ------------------------------------------------------------------------ 
[INFO] BUILD FAILURE 
[INFO] ------------------------------------------------------------------------ 
[INFO] Total time: 29.571s 
[INFO] Finished at: Wed Oct 23 18:16:07 BST 2013 
[INFO] Final Memory: 42M/301M 
[INFO] ------------------------------------------------------------------------ 
[ERROR] Failed to execute goal on project neo4j-jmx: Could not resolve dependencies for 
project org.neo4j:neo4j-jmx:jar:2.0-SNAPSHOT: Failure to find org.neo4j:neo4j- 
kernel:jar:tests:2.0-SNAPSHOT in http://m2.neo4j.org/content/repositories/snapshots/ 
was cached in the local repository, resolution will not be reattempted until the update 
interval of neo4j-snapshot-repository has elapsed or updates are forced -> [Help 1] 

我已經在Windows 7

運行它同樣的問題任何幫助表示讚賞。

回答

1

現在問題已解決。 community/jmx項目依賴於社區/內核測試jar,它只在jmx項目之後生成。作爲Maven noob,我不確定Maven是否應該從快照存儲庫獲取依賴關係。無論如何,我現在在本地有神器。

+0

你是如何在本地獲得articact的? – Clintm

+2

那麼,實際上問題是運行-DminimalBuild不會爲項目構建測試罐。我不得不使用-DskipTests來實際編譯測試代碼並在本地安裝工件。問題不在於構建順序。 –