错误:无法在jenkins内部的项目xxxx上执行目标

时间:2018-12-04 07:39:52

标签: maven jenkins nexus

当我在jenkins中运行构建时,当我尝试在本地运行其构建良好时,出现以下错误。

  [ERROR] Failed to execute goal on project xxx: Could not resolve dependencies for project xxx:xxx-bin:pom:10-2.1.0-test: The following artifacts could not be resolved: xxx-alerts:alerts-loader:jar:xxx:3-95210ce313-2.1.0-test, xxx-alerts:alerts-loader:zip:resources:3-95210ce313-2.1.0-test: Failure to find xxx-alerts:alerts-loader:jar:deps:3-95210ce313-2.1.0-test in http://xxx:8080/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced -> [Help 1]
    [ERROR] 

1 个答案:

答案 0 :(得分:2)

删除〜.m2 \ repository,这应该对您有用。 另外,在安装前请确保您使用clean运行mvn命令