我正在为现有的maven项目设置Jenkins。构建运行时,Jenkins控制台显示以下错误(文件名/ URL已更改):
[ERROR] Failed to execute goal on project: Could not resolve dependencies for project: Failure to find (file jar) in http://example.com:8081/nexus/content/repositories/snapshots was cached in the local repository, resolution will not be reattempted until the update interval of repo has elapsed or updates are forced -> [Help 1]
[ERROR]
当我cd /var/lib/jenkins/jobs/Project/workspace
并自己运行mvn package
时,构建成功完成。
我尝试过强制/清理,我尝试删除Jenkins项目并重新添加。
如何通过Jenkins强制构建,或者导致缓存错误的原因是什么?