2014-09-02 74 views
0

我想在我的項目中添加org.springframework.spring.web-mvc3.2.0.RELEASE依賴項。但是當我加入這個依賴和保存,它表明這個錯誤: enter image description here 和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

看來你失去了連接的傳輸過程中Maven的中央一半。問題是你的工件可能會與Maven緩存不同步。如果您的本地Maven存儲庫相對較小,我建議刪除.m2下的整個存儲庫文件夾,並嘗試從命令行重新生成(mvn clean install)