[INFO] Scanning for projects...
Downloading: http://repo1.maven.org/maven2/org/springframework/boot/spring-boot-starter-parent/2.2.2.RELEASE/spring-boot-starter-parent-2.2.2.RELEASE.pom
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project com.zx:api-sdk:0.0.1-SNAPSHOT (D:\git\2020\company\api-sdk\pom.xml) has 1 error
[ERROR] Non-resolvable parent POM: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.2.2.RELEASE from central (http://repo1.maven.org/maven2): Error transferring file: Ser
ver returned HTTP response code: 501 for URL: http://repo1.maven.org/maven2/org/springframework/boot/spring-boot-starter-parent/2.2.2.RELEASE/spring-boot-starter-parent-2.2.2.RELEASE.pom and 'parent.relativePath
' points at wrong local POM @ line 5, column 10 -> [Help 2]
[ERROR]
配置一下 阿里云仓库
<repositories> <repository> <id>central</id> <name>aliyun maven</name> <url>http://maven.aliyun.com/nexus/content/groups/public/</url> <layout>default</layout> <!-- 是否开启发布版构件下载 --> <releases> <enabled>true</enabled> </releases> <!-- 是否开启快照版构件下载 --> <snapshots> <enabled>false</enabled> </snapshots> </repository> </repositories>
idea中 执行 mvn clean install