2016-02-05 38 views
1

我已經從GitHub和問題克隆the repositorymvn clean install -U但由於某種原因,我得到:爲什麼MVN乾淨安裝-U不工作:不可分辨父POM

[INFO] Scanning for projects... 
[ERROR] [ERROR] Some problems were encountered while processing the POMs: 
[FATAL] Non-resolvable parent POM for com.github.gwtmaterialdesign:gwt-material-addins:[unknown-version]: Could not find artifact com.github.gwtmaterialdesign:gwt-material-parent:pom:1.5.0-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 3, column 13 
@ 
[ERROR] The build could not read 1 project -> [Help 1] 
[ERROR] 
[ERROR] The project com.github.gwtmaterialdesign:gwt-material-addins:[unknown-version] (E:\java\gwt-material\gwt-material-addins\pom.xml) has 1 error 
[ERROR]  Non-resolvable parent POM for com.github.gwtmaterialdesign:gwt-material-addins:[unknown-version]: Could not find artifact com.github.gwtmaterialdesign:gwt-material-parent:pom:1.5.0-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 3, column 13 -> [Help 2] 
[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/ProjectBuildingException 
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException 

我該如何解決這個問題?我實際上想更新我的本地存儲庫,因爲有一個我依賴的更新。我不記得我是如何安裝依賴關係的,但是當時我沒有得到這個錯誤。甚至在我身邊的錯誤?

回答

0

那裏不是很棒的設計。您收到此錯誤的原因是gwt-material-addins依賴於SNAPSHOT版本gwt-material-parent,但該工件未部署在任何存儲庫中(在SNAPSHOT版本中)。

因此,您需要首先克隆並安裝gwt-material。這將在正確的SNAPSHOT版本中安裝gwt-material-parent,然後,您將能夠構建gwt-material-addins

要回顧一下:

  • 克隆https://github.com/GwtMaterialDesign/gwt-material
  • 運行mvn clean installgwt-material
  • 然後在gwt-material-addins運行mvn clean install
+0

謝謝,工作! – displayname

相關問題