maven报错信息:
Failure to transfer org.apache.maven.shared:maven-shared-utils:pom:0.6 from 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. Original error:
Could not transfer artifact org.apache.maven.shared:maven-shared-utils:pom:0.6 from/to central
(https://repo.maven.apache.org/maven2): Read timed out;
如果在下载maven项目中的jar包时网络不好,或者断网,会生成一个.lastUpdated为后缀的文件。如果这个文件存在,那么即使换一个有资源的仓库后,Maven依然不会去下载新资源。这个时候只要去自己本地的仓库中找到 .lastUpdated结尾的文件就可以重新下载jar包了。网上也有不删除这些文件就可以更新的方法,但是我没进行尝试。
下面这个是转载别人下载不到父工程版本的jar包时报错的解决方法:
https://www.cnblogs.com/1314wamm/p/7235453.html