创建maven项目失败

时间:2014-07-29 10:23:51

标签: java eclipse maven

我在eclipse(indigo)中创建了一个简单的maven项目,它报告了一个错误:

Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.4.3 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.4.3

我在本地回购中找到了maven-resources-plugin:2.5。 我不明白为什么我的项目需要2.4.3而不是2.5?

mvn -v:

Apache Maven 3.0.4 (r1232337; 2012-01-17 16:44:56+0800)
Maven home: D:\Program Files\maven-3.0
Java version: 1.6.0_31, vendor: Sun Microsystems Inc.
Java home: D:\Program Files\Java\jdk1.6.0_31\jre
Default locale: zh_CN, platform encoding: GBK
OS name: "windows xp", version: "5.1", arch: "x86", family: "windows"

1 个答案:

答案 0 :(得分:0)

我解决了,

只需创建src / main / java,src / main / resources,src / test / java,src / test / resources

maven-resources-plugin将消失。