htyj

pom.xml文件头报错

场景

例Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.12.4 from https://repo.maven.apache.org/maven2 was cached in the local repository

解决方案

  • 找到本地maven仓库中maven-surefire-plugin对应的版本文件夹(一般在..\repository\org\apache\maven\plugins下),然后删除文件夹中maven-surefire-plugin-2.12.4.pom.lastUpdated
  • 右键点击项目 -> Maven -> Update Dependencies,问题就可以解决了

 

分类:

技术点:

相关文章:

  • 2019-07-23
  • 2021-08-09
  • 2021-04-18
  • 2021-11-28
  • 2021-10-15
  • 2021-12-24
  • 2021-12-19
  • 2021-11-18
猜你喜欢
  • 2021-12-27
  • 2020-01-16
  • 2018-04-09
  • 2021-07-28
  • 2021-05-31
  • 2021-08-14
  • 2021-08-23
相关资源
相似解决方案