这种情况一般是因为 maven 配置的 setting.xml 文件有误.

image

maven 项目编译报错如下

image

点击【项目名】提示

[ERROR] Error executing Maven.
[ERROR] The specified user settings file does not exist: E: \dev.xml

image

也就是说找不到 xml 文件

解决方案

  1. 双击 shift 找到 setting.xml 重新引入即可
  2. 再次执行 maven install 打包操作

BolunWu
4 声望3 粉丝