解决Maven提示:Could not read settings.xml, assuming default values

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

②:路径一定要写对:比如说  <localRepository>D:/Maven/repo/</localRepository>  中的路径使用 “/”  而非  windows 路径中的  “\”。

③:不管用什么编辑器,在保存的时候一定要保存为   “UTF-8”,推荐使用   notePad++  :

猜你喜欢

转载自blog.csdn.net/qq_14861367/article/details/81130313