git已经正常从gitee上拉取到项目代码了
在maven获取依赖的时候出现以下错误。maven版本 3.9.0(不知道版本有没有关系)
1、配置的aliyun镜像好像有点问题,但是我window 本机也是这么配的没有问题。
2、'parent.relativePath' ,查博客好像说将
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.7.1</version>
<relativePath/>
</parent>
换成
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.7.1</version>
<relativePath>./<relativePath>
</parent>
或者直接删除了,但是没有用
Parsing POMs
ERROR: Failed to parse POMs
org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:
[WARNING] 'parent.relativePath' of POM org.example:Wx-login:1.0-SNAPSHOT (/var/lib/jenkins/workspace/java-pro2/pom.xml) points at org.example:Wx-login instead of org.springframework.boot:spring-boot-starter-parent, please verify your project structure @ line 15, column 10
[FATAL] Non-resolvable parent POM for org.example:Wx-login:1.0-SNAPSHOT: org.springframework.boot:spring-boot-starter-parent:pom:2.7.1 failed to transfer from http://0.0.0.0/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of maven-default-http-blocker has elapsed or updates are forced. Original error: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.7.1 from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [alimaven (http://maven.aliyun.com/nexus/content/repositories/central/, default, releases)] and 'parent.relativePath' points at wrong local POM @ line 15, column 10
问题卡很久了,求解😥