idea中pom下载依赖遇到的问题
是我在学习过程遇到的问题及解决尝试方法
问题1
Parent ‘Unknown:Unknown:Unknown’ has problems 更少… (Ctrl+F1)
Inspection info: Inspects a Maven model for resolution problems.
解决
将原来pom.xml代码片
.
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.2.6.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
改为:
<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.2.0.RELEASE</version> <relativePath/> <!-- lookup parent from repository --> </parent>
此时maven更新下载
问题2:idea中清理缓存
手动清理:
位置:C:\Users\管理员.IntelliJIdea2018.2\system\frameworks\detection中删除项目缓存即可。
问题3
镜像下载问题
maven目录conf下setting中镜像修改:
``
alimaven
aliyun maven
http://maven.aliyun.com/nexus/content/groups/public/
central
<mirror>
<id>repo2</id>
<mirrorOf>central</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://repo2.maven.org/maven2/</url>
</mirror>
<mirror>
<id>ui</id>
<mirrorOf>central</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://uk.maven.org/maven2/</url>
</mirror>
<mirror>
<id>huaweicloud</id>
<mirrorOf>*</mirrorOf>
<url>https://mirrors.huaweicloud.com/repository/maven/</url>
</mirror>
注:仅为个人问题解决