嘗試使用 Jenkins 構建專案時出現錯誤
> [ERROR] Failed to execute goal on project luwak-task-storage: Could not resolve dependencies for project
> com.trendmicro.luwak:luwak-task-storage:jar:3.0.0-SNAPSHOT: Failed to
> collect dependencies at org.bouncycastle:bc-fips:jar:1.0.2.3: Failed
> to read artifact descriptor for org.bouncycastle:bc-fips:jar:1.0.2.3:
> Could not transfer artifact org.bouncycastle:bc-fips:pom:1.0.2.3
> from/to central
> (https://nexus.trendmicro.com/nexus/repository/maven-central/):
> sun.security.validator.ValidatorException: PKIX path building failed:
> sun.security.provider.certpath.SunCertPathBuilderException: unable to
> find valid certification path to requested target -> [Help 1]
我有一個名為 org.bouncycastle:bc-fips:pom:1.0.2.3 的依賴項,它是無法決議的庫,但我不知道為什么。我可以在本地成功構建我的專案,但是在使用 Jenkins 時,我得到了這個錯誤。我已經閱讀了一些主題,但沒有一個能解決我的問題。請幫忙。
uj5u.com熱心網友回復:
我有一個名為 org.bouncycastle:bc-fips:pom:1.0.2.3 的依賴項,它是無法決議的庫,但我不知道為什么?
因為您的服務器還沒有該依賴項/庫,并且由于以下原因在獲取這些所需的工件之前失敗:
您的系統(Jenkins 服務器)無法驗證服務器身份,它試圖從其中提取工件,因此無法建立適當的通信渠道。
如果您識別并信任目標服務器,那么您可以在 Jenkins 服務器上添加 CA 證書(很可能在 Jenkins 使用的 java 密鑰庫中)來驗證握手程序。
https://stackoverflow.com/a/63491078/9926179
轉載請註明出處,本文鏈接:https://www.uj5u.com/qiye/435689.html
