解决Could not find artifact org.springframework.boot:spring-boot-maven:pom

在使用Maven构建工程时遇到'Could not find artifact org.springframework.boot:spring-boot-maven:pom'的问题。排查发现并非证书或版本问题,而是阿里云Maven仓库的文件不完整,缺少spring-boot-maven-plugin。更换镜像源后问题解决,提醒开发者注意镜像源的文件完整性。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

解决Could not find artifact org.springframework.boot:spring-boot-maven:pom

最近用maven搭建工程发现这个问题:

Could not find artifact org.springframework.boot:spring-boot-maven:pom in aliyun…

我自己之前配置的阿里云maven仓库镜像,去检查了一下发现并没有什么问题,用了很长的时间找了一圈回答终于明白了:不是什么证书问题也不是什么版本问题是源的问题!

我去阿里云的官网查找下载下来spring-boot-starter-parent
结果惊奇的发现 各个版本里面都没有spring-boot-maven-plugin这个标签
所以原因找到了是因为阿里云的源中的文件内容不全
我就换了一个镜像源

	<mirror>
		<id>jboss-public-repository-group
回答: 你遇到的问题是找不到org.springframework.boot:spring-boot-maven:pom这个依赖。根据引用\[1\]中的信息,你需要在pom.xml文件中添加spring-boot-starter-web的版本号,例如<version>2.1.2.RELEASE</version>。另外,引用\[2\]和引用\[3\]中提到了一些镜像源的配置信息,你可以尝试更换镜像源来解决这个问题。 #### 引用[.reference_title] - *1* [Could not find artifact org.springframework.boot:spring-boot-starter-web:](https://blog.csdn.net/wobenwoxiangfei/article/details/121347516)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* [解决Could not find artifact org.springframework.boot:spring-boot-maven:pom](https://blog.csdn.net/zhs260133172/article/details/113000175)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item] - *3* [Could not find artifact org.springframework.boot:spring-boot-starter-parent](https://blog.csdn.net/lylovejava0/article/details/129686203)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值