2014-06-12 48 views
3

MVN全新安裝的原因建立自己的錯誤 這裏是我得到的錯誤安裝錯誤..MVN乾淨,用「負尋求補償」

... 24 more 
{[INFO] ------------------------------------------------------------------------ 
[INFO] BUILD FAILURE 
[INFO] ------------------------------------------------------------------------ 
[INFO] Total time: 1.707s 
[INFO] Finished at: Thu Jun 12 14:09:51 IST 2014 
[INFO] Final Memory: 9M/104M 
[INFO] ------------------------------------------------------------------------ 
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-  plugin:2.1:unpack-dependencies (get-test-data) on project neo4j-spatial: Error unpacking file: /home/dev237/.m2/repository/org/neo4j/spatial/osm-test-data/20100819/osm-test-data-20100819.jar to: /home/dev237/Projects /spatial/target 
[ERROR] org.codehaus.plexus.archiver.ArchiverException: Error while expanding /home/dev237/.m2/repository/org/neo4j/spatial/osm-test-data/20100819/osm-test-data-20100819.jar: Negative seek offset 
[ERROR] -> [Help 1] 
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 
[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 read the following articles: 
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ 
+0

消息「Negative seek offset」指示損壞的下載。你可以驗證文件在那裏,可讀和可以嗎?懷疑你也可能試着刪除lcoal maven repo,然後再試一次? – wemu

+0

http://stackoverflow.com/questions/24178197/how-to-build-maven-after-importing-an-java-spring-project/24178362#24178362 這個答案可能會幫助你通過它 –

+0

我們改變了文件權限到777.how我可以刪除maven回購..可以請具體關於this.I是一個beginer .. – sree

回答

2

嘗試重命名存儲庫文件夾「/home/dev237/.m2/repository「使maven創建一個新的存儲庫並再次下載所有的依賴關係。

+0

我用來重命名資源庫文件夾,並嘗試mvn乾淨安裝。但它提供了許多警告和錯誤..最後它給建設錯誤,以下錯誤消息 – sree

+0

未能執行目標org.apache.maven.plugins:maven-dependency-plugin :2.1:項目neo4j-spatial上的unpack-dependencies(get-test-data): – sree

+0

如果您可以將POM文件的內容添加到您的問題的正文中,我可能會提供進一步的幫助。 – TekTimmy