我正在使用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(我也有依赖)。
答案 0 :(得分:3)
您不需要手动下载插件。该插件存在于central repository中,因此Maven应该能够下载它。
您是否禁用了中央回购?您是否位于阻止访问某些远程服务器的防火墙后面?
或者你可能在本地拥有插件,但文件已损坏。
无论如何,要安装它,只需下载pom
和jar
,然后使用maven-deploy-plugin到install the file。