无法在eclipse中创建maven项目

Unable to create a maven project in eclipse

我正在尝试创建一个 Maven 项目并显示以下错误

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

我的eclipse安装了m2e插件,系统变量也设置好了

C:\Users2346>mvn -v

Apache Maven 3.3.1 (cab6659f9874fa96462afef40fcf6bc033d58c1c; 2015-03-14T01:40:2 7+05:30) Maven home: D:\apache-maven-3.3.1 Java version: 1.7.0_25, vendor: Oracle Corporation Java home: C:\Program Files\Java\jre7 Default locale: en_US, platform encoding: Cp1252 OS name: "windows 7", version: "6.1", arch: "x86", family: "windows"**

但我仍然遇到同样的错误。

我找到了答案,我忘记在 .m2/ 目录的 settings.xml 文件中添加我使用的代理服务器。