哎呀我草这个maven怎么一直爆红啊,记录一下解决方案。。。
stackoverflow谢谢你….
2025/5/2
pom.xml文件开头\报红:
2025/5/2
Non-resolvable parent POM for org. example:demo1:0.0.1-SNAPSHOT: The following artifacts could not be resolved: org. springframework. boot:spring-boot-starter-parent:pom:3.4.5 (absent): org. springframework. boot:spring-boot-starter-parent:pom:3.4.5 failed to transfer from https:// repo. maven. apache. org/ maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org. springframework. boot:spring-boot-starter-parent:pom:3.4.5 from/ to central (https:// repo. maven. apache. org/ maven2): Connect to repo. maven. apache. org:443 [repo. maven. apache. org/ 146.75.48.215] failed: Connect timed out and ‘parent. relativePath’ points at no local POM
不仅如此,我的项目文件夹也没有正常标识(e.g.资源文件的三横)
解决方案:
删除c盘用户文件夹下的.m2文件 这个文件是本地缓存
所以问题应该是springboot starter这个依赖我用的是最新版本,而缓存里还是上一个版本,所以没下成功?
Lombok log缺失
根据网上说法更换了Lombok版本、增加了注释说明,还是没有用!
最后看弹幕解决了…
解决方案:
在设置里面搜索注解处理器,把default和底下的都改成从项目类路径获取处理器