我們的 jenkins 作業無法決議 pom,因為它找不到父 pom。(詹金斯版本 2.332.3)
Parsing POMs
Failed to transfer Could not find artifact <our parent pom> in central (https://repo.maven.apache.org/maven2)
ERROR: Failed to parse POMs
org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for <current project>: Could not find artifact <our parent pom> in central (https://repo.maven.apache.org/maven2) and 'parent.relativePath' points at wrong local POM @ line 10, column 13
該專案設定為一個maven專案,沒有目標可以執行。如果我將作業配置為預構建步驟,則 maven 構建成功。
標志喜歡-U并且-X不更改日志訊息。
父 pom 位于我們的私有 nexus 存盤庫中的工件中,并且應該已經在本地.m2存盤庫中,因為預構建步驟是成功的。
在舊的 jenkins (2.263.4) 服務器上,構建作業得很好。
任何提示將不勝感激
uj5u.com熱心網友回復:
這次指定顯式的路徑很有幫助settings.xml。
- 是的,它正在使用 中的設定
root,這很可能不推薦 - Jenkins 實體在 docker 容器中運行,該容器基于自己的鏡像,以官方的 jenkins 鏡像作為其根。
- 仍然很奇怪,因為另一項作業在沒有指定此路徑的情況下作業正常

轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/492768.html
上一篇:將詹金斯階段放入函式定義中時出錯
