①:在 settings 配置文件中一定不能有中文,包括注释 <!-- --> 内部也不能有。
②:路径一定要写对:比如说 <localRepository>D:/Maven/repo/</localRepository> 中的路径使用 “/” 而非 windows 路径中的 “\”。
③:不管用什么编辑器,在保存的时候一定要保存为 “UTF-8”,推荐使用 notePad++ :
①:在 settings 配置文件中一定不能有中文,包括注释 <!-- --> 内部也不能有。
②:路径一定要写对:比如说 <localRepository>D:/Maven/repo/</localRepository> 中的路径使用 “/” 而非 windows 路径中的 “\”。
③:不管用什么编辑器,在保存的时候一定要保存为 “UTF-8”,推荐使用 notePad++ :