我想在我的项目中添加org.springframework.spring.web-mvc3.2.0.RELEASE依赖项。但是当我添加此依赖项并保存它时,它会显示以下错误: 和pom.xml:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>fit</groupId>
<artifactId>Example01</artifactId>
<packaging>war</packaging>
<version>0.0.1-SNAPSHOT</version>
<name>Example01 Maven Webapp</name>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>3.2.0.RELEASE</version>
</dependency>
</dependencies>
<build>
<finalName>Example01</finalName>
</build>
</project>
答案 0 :(得分:0)
在传输过程中,您似乎失去了与Maven中间连接的连接。问题是您的工件可能与Maven缓存不同步。如果您的本地Maven存储库相对较小,我建议删除.m2下的整个存储库文件夹并尝试从命令行再次重建(mvn clean install)