参考:https://blog.csdn.net/hqocshheqing/article/details/47702049 

最近在学习Maven  时总是出现 Could not read settings.xml, assuming default values  错误,使得用户配置无法生效,在网上找了很多资料仍然解决不了,后来通过自己摸索找到了一下原因:

1:在  settings  配置文件中一定不能有中文,包括注释  <!--   -->  内部也不能有。

2:路径一定要写对:比如说  <localRepository>D:/Maven/repo/</localRepository>  中的路径使用 “/”  而非  windows 路径中的  “\”。
3:标签嵌套一定要完整。

 

相关文章:

  • 2021-04-10
  • 2021-11-14
  • 2021-11-06
  • 2021-09-28
  • 2022-01-07
  • 2022-02-17
  • 2022-01-18
  • 2021-09-12
猜你喜欢
  • 2021-05-12
  • 2021-11-28
  • 2021-04-14
  • 2021-05-13
相关资源
相似解决方案