1

我正在使用 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

我想手动下载那个插件“maven-resources-plugin”。

任何人都可以建议如何手动下载插件并避免此错误。我检查了 pom.xml(我也有它的依赖项)。

4

1 回答 1

3

您不需要手动下载插件。该插件存在于中央存储库中,因此 Maven 应该能够下载它。

您是否禁用了中央仓库?您是否位于阻止访问某些远程服务器的防火墙后面?

或者,也许您在本地确实有插件,但文件已损坏。

无论如何,要安装它,只需下载pomjar,然后使用maven-deploy-plugin安装文件

于 2012-12-31T06:49:40.077 回答