不重複!我已經用相似的標題回顧了SO資源,但是這個問題似乎與Jenkins和ssh有關,其他問題沒有涉及這個問題。具體來說,這不是一個maven問題,而是一個Jenkins問題。Jenkins + Nexus - 解析POM失敗,未驗證對等方
解析我的POM時,Jenkins無法通過ssh連接到nexus(它正在尋找父處理的POM)。在這個過程中(接近開始),POM並沒有被maven自己讀取 - 它正在被Jenkins(或它的一個插件)用來創建一個依賴關係樹,這樣項目就可以建立在正確的訂購。我得到的錯誤是peer not authenticated
。
下面是輸出的相關位:
Parsing POMs
Failed to transfer Could not transfer metadata org.us.thing:thingy:2.0/maven-metadata.xml
from/to nexus (https://nexus:2443/nexus/content/groups/public):
peer not authenticated
ERROR: Processing failed due to a bug in the code. Please report this to [email protected]
java.lang.IllegalStateException: Failed to build parent project for org.us.thing:thingy:pom:2.0
at org.apache.maven.project.MavenProject.getParent(MavenProject.java:381)
at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1325)
我已經配置使用javax.net.ssl.trustStore
信任存儲,並能正常工作,通過詹金斯,當Maven運行一個版本。我也認爲詹金斯以某種方式關注它,因爲在不使用信任存儲時出現的錯誤通常是不同的,但我不確定這是否真的如此。
我已經配置了一個工件解析器作爲一個repo管理器和我的聯繫網址和憑證。我也爲我的憑證設立了一個'Credentails'的聯繫網域。
那麼,如何繼續?我的解決方案會很好,但我會解決更多的麪包屑。
謝謝你的提示,我跑完全相同的問題,你的解決方法節省了我的一天。 – 2016-04-06 15:04:39