1. 程式人生 > >Project build error: Non-resolvable import POM

Project build error: Non-resolvable import POM

Project build error: Non-resolvable import POM

<dependencyManagement>
	<dependencies>
		<dependency>
			<groupId>org.springframework.cloud</groupId>
			<artifactId>spring-cloud-dependencies</artifactId>
			<version>Dalston.RC1</version>
			<type>pom</type>
			<scope>import</scope>
		</dependency>
	</dependencies>
</dependencyManagement>

報如下異常:

Project build error: Non-resolvable import POM: Failure to transfer org.springframework.cloud:spring-cloud-dependencies:pom:Dalston.RC1 from https://repo.spring.io/milestone was cached in the local repository, resolution will not be reattempted until the update interval of spring-milestones has elapsed or updates are forced. Original error: Could not transfer artifact org.springframework.cloud:spring-cloud-dependencies:pom:Dalston.RC1 from/to spring-milestones (

https://repo.spring.io/milestone): Received fatal alert: protocol_version to https://repo.spring.io/milestone/org/springframework/cloud/spring-cloud-dependencies/Dalston.RC1/spring-cloud-dependencies-Dalston.RC1.pom

去maven倉庫查了一下, https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-dependencies

,並沒有Dalston.RC1這個version,參照帖子建議,改成Dalston.SR4,完美解決。

<dependencyManagement>
	<dependencies>
		<dependency>
			<groupId>org.springframework.cloud</groupId>
			<artifactId>spring-cloud-dependencies</artifactId>
			<version>Dalston.SR4</version>
			<type>pom</type>
			<scope>import</scope>
		</dependency>
	</dependencies>
</dependencyManagement>