'Building workspace' has encountered an error

左心房为你撑大大i 提交于 2019-11-29 11:58:28

问题


Eclipse Luna 4.4.0

Error occurred during the Build

Error instantiating builder 'ord.eclipse.m2e.core.maven2Builder'.
Plug-in org.eclipse.m2e.core was unable to load class org.eclipse.m2e.core.internal.builder.MavenBuilder
An error occurred while automatically activating bundle org.eclipse.m2e.core (547).
Plug-in org.eclipse.m2e.core was unable to load class org.eclipse.m2e.core.internal.builder.MavenBuilder.
An error occurred while automatically activating bundle org.eclipse.m2e.core (547).
Error instantiating builder 'org.eclipse.m2e.core.maven2Builder'.
Plug-in org.eclipse.m2e.core was unable to load class org.eclipse.m2e.core.internal.builder.MavenBuilder.
An error occurred while automatically activating bundle org.eclipse.m23.core (547).
Plug-in org.eclipse.m2e.core was unable to load class org.eclipse.m2e.core.internal.builder.MavenBuilder.
an error occurred while automatically activating bundle org.eclipse.m2e.core (547).

if i delete the folder .metadata and all .project and .setting data from my workspace, i get no error. After one day of work i´ll get the same error.


回答1:


Try next steps:

  1. Go to your eclipse installation folder
  2. Run "eclipse.exe -clean"
  3. Work normally
  4. Enjoy



回答2:


I ran into this same issue and I believe the culprit to be the Sonarqube plugin I had installed.

This discussion pointed me in that direction:

http://forum.spring.io/forum/spring-projects/springsource-tool-suite/749864-sts-ggts-3-6-0-m1-released

Uninstalled the Sonarqube plugin and the error is gone.




回答3:


I uninstalled my Netbeans because Eclipse and Netbeans are both usin the same workspace.

i uninstalled Netbeans and the error is gone.




回答4:


In my case, the problem resulted to be my Eclipse was running on an outdated IBM Java Virtual Machine. I updated my IBM JRE, I modified my eclipse.ini in order to update the -vm parameter so it points to the new installation, and it solved the problem.




回答5:


In my case none of the above solutions worked. I used eclipse with two different workspaces, one works, seconds had this error. My solution was it to copy from the working workspace the following files over the corrupted one:

[workspace]/.metadata/.plugins/org.eclipse.m2e.core
[workspace]/.metadata/.plugins/org.eclipse.m2e.core.ui
[workspace]/.metadata/.plugins/org.eclipse.m2e.jdt
[workspace]/.metadata/.plugins/org.eclipse.m2e.launching
[workspace]/.metadata/.plugins/org.eclipse.m2e.logback.configuration

I'm using eclipse mars 64-bit version. So maybe before your whole workspace gets broken this might be a solution from a clean installation to copy.




回答6:


exclude the error js files. it will definitely will work..




回答7:


I keep my Workspace on Dropbox. I had this issue occur, and managed to solve it by searching within [workspace]/.metadata/ for the word 'conflicted' and deleting all these files Dropbox had created. Error was gone when I restarted Eclipse.




回答8:


I have added 'javaw.exe' in the bin file (C:\Program Files\Java\jdk-X.X.X\bin) as a System variable and deleted all the module info. This worked for me. However, this might be specific to the Enterprise Java package.



来源:https://stackoverflow.com/questions/25929458/building-workspace-has-encountered-an-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!