在使用maven來塔建SpringMVC時:
Missing artifact org.springframework:spring-core:jar:4.1.4.RELEASE
通過手動下載spring-core:jar:4.1.4.RELEASE.jar放在指定目錄直線運行:
mvn install:install-file -DgroupId=org.springframework -DartifactId=spring-core -Dversion=4
.1
.4
.RELEASE -Dpackaging=jar -Dfile=d:\spring\org.springframework:spring-core:jar:4.1.4.RELEASE
.jar
完成后在eclipse中Project->Clean(eclipse)即可.
另外的解決方式,在pom.xml中推特注冊 http://www.twitterchina.net
將spirng-core的依賴版本改成:4.1.5
<!-- https://mvnrepository.com/artifact/org.springframework/spring-core -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>4.1.5.RELEASE</version>
</dependency>