0

我正在使用 Maven 2.2.0 和 Eclipse Juno。我正在尝试将现有的 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

然后我尝试运行全新安装命令。

并且构建成功。

即使在那之后,我也面临同样的错误。

任何人都可以帮我解决这个问题。

提前致谢。

4

1 回答 1

0

我刚刚得到了这个问题的解决方案。

添加<localRepository>${user.home}/.m2/repository</localRepository>

正如我看到的 .m2 存储库中已经存在 2.5 文件夹,所以添加了这个以停止再次从存储库下载。

在日食中—— window--pref--maven--check the path for settings.xml。它应该是有效的路径。

它解决了我的问题。

于 2013-01-01T08:52:46.900 回答