45
votes

I'm trying to open my Maven project with Eclipse Juno, but I'm getting this error:

An internal error occurred during: "Updating Maven Project".
Preference node "org.eclipse.wst.validation" has been removed.

How is this caused and how can I solve it?

7

7 Answers

73
votes

Same probleme here, there the solution I fix it

  • Open the .project file with your prefered text editor.

  • delete the node that is about "org.eclipse.wst.validation"

  • Close your project

  • Open your project

  • Launch Maven Update...

Should be good.

Another way to fix it, if you don't want to change your .project config (or if you had several projects that must be fixed)

  • Close your workspace (or eclipse)

-move out <WorkspaceDir>\.metadata\.plugins\org.eclipse.core.resources\.projects from the workspace directory

-reopen you workspace

  • close it again

-move back the .projects dir (say yes to replace questions ? )

  • open you workspace

  • Launch Maven Update

Should be good

27
votes

Simpler fix:

  • Close Project
  • Open Project
  • Project > Clean
  • Run Maven Update
11
votes

I was using Eclipse Mars and in my case, just close and reopen my IDE did the work.

3
votes

Dont know, if you still have this problem, but here is the solution worked for me:

It appears that deleting the file org.eclipse.wst.validation.prefs in the directory .metadata/.plugins/org.eclipse.core.runtime/.settings (default settings for workspace) or .settings in each individual project will cause the settings for validation to be reset to their original settings. You can then use validation without getting error messages and try resetting the options from there. However, I'm not sure what combination of settings would cause the problem to reappear. However, if it does, you can repeat the process.

got this from here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=355012

in my case i didnt have the mentioned file in this folder, but i had a bunch of other org.eclipse.wst.* files. deleting them all did the trick for me.

1
votes

The problem is not related to the .projects folder as mentioned in another answer. The solution is to add a file called org.eclipse.wst.validation.prefs in the .settings folder. This will restore the eclipse validation node.

The content of the file, depending on your eclipse version, might look like this:

disabled=06target
eclipse.preferences.version=1
1
votes

Another Solution is too simple , deleting .project file then clean the project and maven update will success surely

0
votes

I think this is one error that could be caused by multiple different sources. I just had the same error however, and just figured out why. In my situation, I just tried to force update some code by deleting a few temporary files. Turned out I accidentally deleted that file as well. I thankfully had it under source control, so I pulled the file back and updated the project with Maven. I also made sure any other errors were fixed so that the project would clean / update successfully.

I'm not sure if this will solve your problem, but I hope it helps! Good luck!