一般是因为本地maven仓库中当前版本依赖包受损导致,可以在install时使用mvn -X -U install打印出日志,会打印出如下警告

[WARNING] The POM for commons-logging:commons-logging:jar:1.2 is invalid, transitive dependencies (if any) will not be available: 1 problem was encountered while building the effective model for commons-logging:commons-logging:1.2 [FATAL] Non-parseable POM D:\apache-maven-3.5.2\Maven\org\apache\commons\commons-parent\34\commons-parent-34.pom: start tag not allowed in epilog but got p (position: END_TAG seen ...</properties>\r\n\r\n</project>\r\n <p... @1387:17) @ D:\apache-maven-3.5.2\Maven\org\apache\commons\commons-parent\34\commons-parent-34.pom, line 1387, column 17

可以看到是当前依赖包的pom文件错误。

解决方案:

直接从本地仓库将当前依赖包版本删除,重新下载