【发布时间】:2021-08-22 20:01:34
【问题描述】:
谁来帮帮我 我在尝试保存 pom.xml 时遇到以下问题 文件:
项目构建错误:Non-resolvable parent POM: Failure to transfer org.springframework.boot:spring-boot-starter- parent:pom:2.5.0 from http://uk.maven.org/maven2 被缓存在本地仓库,解析不会 重新尝试,直到 UK 的更新间隔已过或强制更新。原始错误:无法传输工件 org.springframework.boot:spring-boot-starter-parent:pom:2.5.0 from/to UK (http://uk.maven.org/maven2): null to http://uk.maven.org/maven2/org/springframework/boot/spring-boot-starter-parent/2.5.0/spring-boot-starter- parent-2.5.0.pom 和 'parent.relativePath' 指向没有本地 POM
这是我的 pom.xml
4.0.0
org.springframework.boot
spring-boot-starter-parent
2.5.0
com.example
马板鹊
0.0.1-快照
马板鹊
Spring Boot 的演示项目
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
【问题讨论】:
-
使用 https 而不是 http....
标签: java spring spring-boot maven java-ee-6