0

1)使用 m2e 安装 eclipse
2)单独安装当前的 maven 版本(取决于你需要什么,Maven 2.2.x 或 Maven 3.0.x) 3)由于文档,在 Eclipse 中配置你安装的 Maven。在Window > Preferences > Maven > Installations 部分执行此操作。如果这在 Eclipse 中不可见,您首先必须使用正常的安装过程安装 m2e:帮助 > 安装新软件 > 使用:Indigo > 过滤文本:m2e > Collaboration > m2e。然后下一个,下一个,下一个......

这些是我在eclipse中安装m2e插件时遵循的步骤。但是当我尝试创建一个新的maven项目时,eclipse显示这个错误
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
我在堆栈上找到了很多答案,但不明白,因为我是 maven 新手。请帮助
我使用 maven 3.0.5 ,eclipse indigo 3.7.0

4

1 回答 1

1

可能是Maven无法上网,这通常是由于缺少代理设置造成的。请检查所有这些地方的代理设置:

于 2013-05-01T10:17:10.847 回答