代码块


<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>5.0.0.RC2</version>
</dependency>

pom.xml报错信息:

Missing artifact org.springframework:spring-context:jar:5.0.0.RC2

出错原因:

从maven的中央仓库可以看出,5.0.0.RC2这个版本不是来自central这个仓库,见图:

Missing artifact org.springframework:spring-context:jar:5.0.0.RC2

解决办法:

把5.0.0.RC2版本修改为来自central版本,如4.3.10.RELEASE。

相关文章: