在使用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>
时间: 2024-10-13 12:35:19