Spring和Maven插件安装问题; MVN;春天
我有一个基于 Maven 的项目,我正在尝试将其导入到 Spring 源工具套件中。我收到以下错误。
Description Resource Path Location Type
Could not calculate build plan: Missing:
----------
1) org.apache.maven.plugins:maven-resources-plugin:maven-plugin:2.4.2
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.maven.plugins -DartifactId=maven-resources-plugin -Dversion=2.4.2 -Dpackaging=maven-plugin -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.apache.maven.plugins -DartifactId=maven-resources-plugin -Dversion=2.4.2 -Dpackaging=maven-plugin -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
----------
1 required artifact is missing.
for artifact:
org.apache.maven.plugins:maven-resources-plugin:maven-plugin:2.4.2
from the specified remote repositories:
central (http://repo1.maven.org/maven2, releases=true, snapshots=false)
Gamex Unknown Maven Problem
看起来它要求我安装 Maven 资源插件 2.4.2,但我不确定要下载的文件是什么。我尝试下载 maven-plugin-plugin-2.4.2-source.jar 并将其提供给命令;但没有成功。 然后我去了 http: //svn.apache.org/viewvc/maven/plugins/tags/maven-resources-plugin-2.4.2/并下载pof.xml;这也行不通。 如果您之前遇到过这个问题,请帮助我了解缺少什么/或者错误消息是什么。
谢谢,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
从 http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/maven/plugins/maven-resources-plugin/2.4.2/ 并执行
清理操作eclipse:eclipse,清理Eclipse中的项目并刷新并尝试。它应该有效。
Download the maven resourource plugin 2.4.2[maven-resources-plugin-2.4.2.jar] from http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/maven/plugins/maven-resources-plugin/2.4.2/ and do an
followed by clean eclipse :eclipse , clean the project in Eclipse and refresh and try . It should work .
您可能位于防火墙后面。您可以尝试设置
HTTP
代理来绕过防火墙。在 Windows 中,此文件位于:
C:\Documents and Settings\\.m2\settings.xml
您需要向
提供有效参数。
基于您的组织中网络的设置方式。You may be behind firewall. You could try to set an
HTTP
proxy to bypass the firewall.In Windows, this file is located at:
C:\Documents and Settings\<windows Login>\.m2\settings.xml
You need to provide valid parameters to the
<proxy>
based on how the network is setup in your organization.