在使用maven来塔建SpringMVC+Mybatis+Spring时出现了:

Missing artifact org.springframework:spring-context:jar:3.1.1.RELEASE:compile


但是可以下载spring-context-3.1.1.RELEASE.jar放在指定目录直线运行:

mvn install:install-file -DgroupId=org.springframework -DartifactId=spring-context -Dversion=3.1.1.RELEASE -Dpackaging=jar -Dfile=D:\Java\spring\org.springframework.core-3.1.3.RELEASE.jar

注:在执行上述命令时候Project->Clean(eclipse)。

即可