Maven报错was cached in the local repository.

在使用maven clean package时报错,

具体信息

[ERROR] Failed to execute goal on project rabbitmq-user: Could not resolve dependencies for project com.wangyk.rabbitmq:rabbitmq-user:jar:1.0.0: The following artifacts could not be res
olved: com.google.zxing:core:jar:3.2.0, com.google.zxing:javase:jar:3.3.0, fr.w3blog:zebra-zpl:jar:0.0.1: Failure to find com.google.zxing:core:jar:3.2.0 in http://10.158.34.100:8081/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]

原因:本地的jar包与私服nexus的jar包不同步,我这里的原因是因为自己下载jar包到本地仓库,打包的时候用的是私服的仓库,从而报错。

解决办法:删除本地仓库的jar包,确保私服nexus中有需要用到的jar包

猜你喜欢

转载自blog.csdn.net/qq_35341771/article/details/85692652
今日推荐