1、问题描述:运行tomcat 时报错,提示无法找到相关的jar包,如下

运行tomcat 时报错,提示无法找到相关的jar包 Publishing failed with multiple errors Error reading file

Publishing failed with multiple errors

Error reading file C:\Users\Lin\.m2\repository\commons-logging\commons-logging\1.2\commons-logging-1.2.jar

C:\Users\Lin\.m2\repository\commons-logging\commons-logging\1.2\commons-logging-1.2.jar (系统找不到指定的文件。)

Error reading file C:\Users\Lin\.m2\repository\org\springframework\spring-expression\4.3.14.RELEASE\spring-expression-4.3.14.RELEASE.jar

C:\Users\Lin\.m2\repository\org\springframework\spring-expression\4.3.14.RELEASE\spring-expression-4.3.14.RELEASE.jar (系统找不到指定的文件。)

Error reading file C:\Users\Lin\.m2\repository\org\springframework\spring-web\4.3.14.RELEASE\spring-web-4.3.14.RELEASE.jar

 

2、原因分析:第一次运行其他项目时失败。因无网络连接,导致部分文件没有下载完成或下载失败。

 

3、原因排查:在本地仓库下查找,确实找不到相关文件,说明部分文件损坏或者未存在,需要重新下载。

 

4、解决方法:右击项目-->Run As -->Maven test  进入项目自检,接下来会自动下载需要的jar包,如下

 运行tomcat 时报错,提示无法找到相关的jar包 Publishing failed with multiple errors Error reading file

下载完成后, 重新运行项目即可。若有其他问题发生,根据提示进一步排查。

相关文章:

  • 2021-07-25
  • 2021-11-09
  • 2022-12-23
  • 2021-09-27
  • 2022-12-23
  • 2021-08-24
  • 2021-07-11
  • 2021-12-08
猜你喜欢
  • 2021-08-20
  • 2021-07-05
  • 2022-12-23
  • 2021-08-04
  • 2022-12-23
  • 2021-07-10
相关资源
相似解决方案