我使用的是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(我也有它的依赖项)。
发布于 2012-12-31 14:49:40
你不需要手动下载插件。该插件存在于central repository中,因此Maven应该能够下载它。
你关闭中央回收站了吗?您是否在阻止访问某些远程服务器的防火墙之后?
或者您在本地确实有插件,但文件已损坏。
无论如何,要安装它,只需下载pom和jar,并使用install the file的maven-deploy-plugin。
https://stackoverflow.com/questions/14098093
复制相似问题