刷新maven时报了如下错误,说没找到该文件,在Repository中删除该文件重新下载还是未成功
Failure to find cfca-logback:cfca-logback:pom:4.1.1.0 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
1.可能是maven配置的外国全球库,下载不成功,配置改为阿里云的库,可以去找配置
2.可能idea开启了离线模式,或maven勾选了Work offline
我是第3种,下载不成功,生成了.lastUpdated文件,下次刷新时就会直接跳过带有该后缀的文件不更新,解决办法是删除该目录,再让它刷新去下载文件,或者直接把同事的该目录copy过来
原因是之前下载该文件未成功就被中止了