Jenkins -解决was cached in the local repository, resolution will not be reattempted until the update

时间:2025-03-25 09:32:45

简介

本文介绍Jenkins 打包构建时biuld 报错:was cached in the local repository, resolution will not be reattempted until the update interval of…
的解决方法。

背景

Jenkins打包构建报找不到jar,但是查看仓库里是有包的。

问题原因分析

jenkins 自己建立了一个本地仓库,构建时没有去远程拉去jar包。

解决方案

方案一:
1、删除jenkins 本地仓库的jar包,让它去远程拉最新的包。
方案二:
1、配置maven的setting,每次拉去包强制去远程仓库拉去。