[英]Jenkins Fails to parse poms due to missing parent pom
我們的 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工程,no target可以執行。 如果我將作業配置為預構建步驟,則 maven 構建成功。
-U
和-X
等標志不會更改日志消息。
父 pom 位於我們的私有 nexus 存儲庫中的工件中,並且應該已經在本地.m2
存儲庫中,因為預構建步驟是成功的。
在舊的 jenkins (2.263.4) 服務器上,構建工作正常。
任何提示將不勝感激
從 Jenkins "1.651.3" 升級到 "2.346.3 LTS" 后,我遇到了這個問題。
當我創造了一份出色的新工作(沒有副本)時——它奏效了。
當我運行升級后的作業時 - 它失敗了。
我設法使升級后的工作再次像這樣工作:
<jenkins_home>/jobs/<job_name>/config.xml
<localRepository class="hudson.maven.local_repo.PerExecutorLocalRepositoryLocator"/>
我花了幾天的時間才在升級中發現這個問題。 祝大家好運。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.