springboot:spring-boot-starter-parent 导包失败 “not found"【暂且弃坑】

问题学习记录

问题

pow.xml中导入spring-boot-starter-parent失败,无法自动下载到本地目录问题

重点

pom.xml中dependency是对repository里的某个artifact的引用。执行时会根据dependency的groupId,artifactId和version去repository中寻找它。无需在pom.xml中指明该dependency来源于哪个repository,maven会先查找local repository,若本地存在该dependency引用的artifact,就使用它;若不存在,再去搜索你所设置的remote repository,找到后就把它下载到local repository。
进入IntelliJ IDEA中,Settings -> Build,Execution,Deployment -> Maven -> Repositories
local repository & remote repository 可查看如下:
local & remote

学习资料

Maven dependency and repository
maven修改本地仓库以及远程仓库位置
填坑之路:SpringBoot导包坑之spring-boot-starter-parent

弃坑…

发布了8 篇原创文章 · 获赞 3 · 访问量 647

猜你喜欢

转载自blog.csdn.net/lehek/article/details/104160080