java

关注公众号 jb51net

关闭
首页 > 软件编程 > java > Maven was cached in the local repository

Maven基础:错误对应:was cached in the local repository的解决

作者:淼叔

这篇文章主要介绍了Maven基础:错误对应:was cached in the local repository的解决方案,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教

Maven基础:错误对应:was cached in the local repository

现象

编译的时候提示如下错误信息:

[ERROR] Failed to execute goal on project Spring-boot-activiti: Could not resolve dependencies for project xxxxxx-xxxxxx:Spring-boot-activiti:jar:1.1: Failure to find io.springfox:springfox-swagger-ui:jar:2.3.2 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
liumiaocn:devops-approval liumiao$

原因

因为错误将springfox-swagger-ui的版本写成2.3.2,导致的错误,看一下Central仓库就可以看到没有这个版本

对应

总结

以上为个人经验,希望能给大家一个参考,也希望大家多多支持脚本之家。

您可能感兴趣的文章:
阅读全文