Maven项目中pom文件的parent标签报错如何解决 (eclipse中创建springboot项目时,pom中的parent标签报错)

2023-05-16

原因:maven的settings文件不能从连网下载依赖jar包

解决办法:在Maven修改settings文件内容 etting配置镜像仓库

<mirror>
    <id>huaweicloud</id>
    <mirrorOf>*</mirrorOf>
    <url>https://mirrors.huaweicloud.com/repository/maven/</url>
</mirror>

<mirror>
     <id>mirrorId</id>
     <mirrorOf>central</mirrorOf>
     <name>Human Readable Name for this Mirror.</name>
     <url>http://central.maven.org/maven2/</url>
</mirror>

<mirror>
     <id>nexus-aliyun</id>
     <mirrorOf>*</mirrorOf>
     <name>Nexus aliyun</name>
     <url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>

  1. 工程 -> 右键 -> Maven -> Update Project…
    在这里插入图片描述
  2. 取消offline选项,选择Force Update of Snapshots/Releases,OK
    在这里插入图片描述

https://blog.csdn.net/DDD4482/article/details/82668310
https://ask.csdn.net/questions/667337
https://blog.csdn.net/weixin_37704921/article/details/81504291
http://blog.csdn.net/daihuimaozideren/article/details/78393555?locationNum=10&fps=1?>

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Maven项目中pom文件的parent标签报错如何解决 (eclipse中创建springboot项目时,pom中的parent标签报错) 的相关文章

随机推荐