简体   繁体   English

Eclipse Juno和Maven插件因项目更新而失败

[英]Eclipse Juno and Maven plugin fails with project update

I am having this problem for long time . 我很长时间都有这个问题。 I have red error image on all my projects. 我的所有项目都有红色错误图像。 In problem window it displayed 在问题窗口中显示

Project configuration is not up-to-date with pom.xml. 项目配置与pom.xml不是最新的。 Run Maven->Update Project or use Quick Fix. 运行Maven-> Update Project或使用Quick Fix。

when right click and click update project and error popup displayed saying, 右键单击并单击更新项目并显示错误弹出窗口,

An internal error occurred during: "Updating Maven Project". 在“正在更新Maven项目”期间发生内部错误。 org/eclipse/m2e/wtp/WTPProjectsUtil 组织/蚀/ M2E / WTP / WTPProjectsUtil

anybody knows how to fix this problem, please. 请有人知道如何解决这个问题。

从首选项>键入'wtp'>取消选择所有选项,然后再次构建和清理

What version of Eclipse? 什么版本的Eclipse? I got this error in RAD 8.5 (based on Exlipse 3.6.3). 我在RAD 8.5中得到了这个错误(基于Exlipse 3.6.3)。 You might just need to back rev your m2e plugin. 你可能只需要修改你的m2e插件。 See the answers to this question: NoClassDefFoundError org.eclipse.m2e.wtp.WTPProjectsUtil upon Maven build Eclipse 看看这个问题的答案: 在Maven构建Eclipse上的NoClassDefFoundError org.eclipse.m2e.wtp.WTPProjectsUtil

I followed the link to the developer works forum and chose the 2nd option presented there: 我按照开发者工作论坛的链接,选择了第二个选项:

Somewhat similar solution suggested by "pppeater" - below is for Eclipse Juno “pppeater”提出了一些类似的解决方案 - 下面是Eclipse Juno

  • Remove all the jars starting with "org.eclipse.m2e." 删除所有以“org.eclipse.m2e”开头的jar。 from eclipse/ide/plugins folder 来自eclipse / ide / plugins文件夹
  • From your Eclipse Market Place search for "m2e-wtp" - install "Maven Integration for Eclipse WTP (Juno) 1.0.1 从Eclipse Market Place搜索“m2e-wtp” - 安装“Maven Integration for Eclipse WTP(Juno)1.0.1”
  • Restart your eclipse and select your project and do "Update Maven dependencies (Alt+F5)" 重新启动eclipse并选择项目并执行“Update Maven dependencies(Alt + F5)”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM