2013-09-27 141 views
1

我正在使用spring和maven創建一個新項目,我正在使用spring源工具。我創建了spring web maven項目。作爲創建的pom.xml如下Spring-Maven項目構建錯誤

<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/xsd/maven-4.0.0.xsd"> 
    <modelVersion>4.0.0</modelVersion> 
    <groupId>org.springframework.samples.service.service</groupId> 
    <artifactId>SpringWeb</artifactId> 
    <version>0.0.1-SNAPSHOT</version> 

<other part is removed> 

日食顯示紅色標記在0.0.xsd「>項目標籤。 同時建立項目日食給出錯誤如下

Errors occurred during the build. 
Errors running builder 'Maven Project Builder' on project 'SpringWeb'. 
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5 
Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5 
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5 
Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5 

我沒有得到什麼錯誤是否pom.xml文件配置是否正確我在互聯網上檢查配置是否正確

+0

檢查此帖:http://stackoverflow.com/questions/14065872/error-while-loading-maven-project-into-eclipse – tbsalling

回答

1

它的信息很少你至少可以很好地在你的pom.xml中看到你的maven資源插件配置

但是總的來說,它可能是你使用了一些代理,並且在下載插件jar的時候,我收到了HTML格式的HTTP錯誤響應,它在您的回購站中保存爲jar。

嘗試手動從repo中刪除jar並再次運行構建。