`
sangmin214
  • 浏览: 176773 次
  • 性别: Icon_minigender_1
  • 来自: 黄山
文章分类
社区版块
存档分类
最新评论

m2eclipse问题(2)

阅读更多

问题可真是多啊,又碰到一个:

[INFO] Scanning for projects...
[INFO]                                                                        
[INFO] ------------------------------------------------------------------------
[INFO] Building myproject 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.125s
[INFO] Finished at: Sun Sep 19 19:39:51 CST 2010
[INFO] Final Memory: 1M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-resources-plugin:2.4.1 or one of its dependencies could not be resolved: Missing:
----------
1) org.apache.maven.plugins:maven-resources-plugin:maven-plugin:2.4.1

  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.1 -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.1 -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.1

from the specified remote repositories:
  central (http://repo1.maven.org/maven2, releases=true, snapshots=false)
-> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
我先去google一下,但愿能找到解决方案。

分享到:
评论
4 楼 songvery 2013-10-22  
              
3 楼 spring123tt 2013-05-28  
说得没错,赞个!
2 楼 ice.kane 2012-12-23  
谢谢你,我才找到答案
1 楼 sangmin214 2010-09-19  
google真是个好东西,相关的解决方案这里有:http://blog.sarathonline.com/2010/03/maven-error-failed-to-resolve-pom.html

具体到我这里就是要删除一个文件:C:\Documents and Settings\user\.m2\repository\org\apache\maven\plugins\maven-resources-plugin\2.4.1里面的maven-resources-plugin-2.4.1.maven-plugin.lastUpdated

相关推荐

Global site tag (gtag.js) - Google Analytics