关于Maven一直reading读取pom.xml文件问题很是蛋疼,我是用的IDEA,想创建一个SpringBoot去做新项目的后端,但是创建完成后,右下角就一直在读取pom文件,依赖包下不来就什么也干不了,而且退出也没有用,会一直堵塞在哪里,只能用资源管理器kill掉IDEA的桌面任务,然后想通过卸载IDEA来重新建项目,但是没有效果,无奈只能面向百度了,看了一些帖子,据说是网络配置问题,其解决的方案大致这有几种:
- 修改HOST文件的 127.0.0.1为localhost,在终端输入 *** netsh winsock reset*** 我的HOST的确是在安装navicat时候改过,然后就修改重启后也没有效果
- 添加本地maven到环境变量,这个有效,不过是在降低springboot版本之后添加的
- 降低springboot版本,默认是2.3.3,降低到2.2.*
- 在IDEA的Help菜单下的showlogExpore,查看运行日志,检查问题,我看了一遍,并没有明显的错误
折腾了挺长时间,现在分享给大家,帮助大家在遇到此类问题的小伙伴能尽快解决,以免耽误工作。