在“更新 Maven 项目”期间发生内部错误。首选项节点“org.eclipse.wst.validation”已被删除
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/21414565/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
An internal error occurred during: "Updating Maven Project". Preference node "org.eclipse.wst.validation" has been removed
提问by 404NotFound
I'm trying to open my Maven project with Eclipse Juno, but I'm getting this error:
我正在尝试使用 Eclipse Juno 打开我的 Maven 项目,但出现此错误:
An internal error occurred during: "Updating Maven Project".
Preference node "org.eclipse.wst.validation" has been removed.
在“更新 Maven 项目”期间发生内部错误。
首选项节点“org.eclipse.wst.validation”已被删除。
How is this caused and how can I solve it?
这是怎么引起的,我该如何解决?
回答by VinyJones
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...
.project
使用您喜欢的文本编辑器打开文件。删除关于“org.eclipse.wst.validation”的节点
关闭你的项目
打开你的项目
启动 Maven 更新...
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)
另一种修复方法,如果您不想更改 .project 配置(或者如果您有几个必须修复的项目)
- Close your workspace (or eclipse)
- 关闭您的工作区(或日食)
-move out <WorkspaceDir>\.metadata\.plugins\org.eclipse.core.resources\.projects
from the workspace directory
-<WorkspaceDir>\.metadata\.plugins\org.eclipse.core.resources\.projects
从工作区目录中移出
-reopen you workspace
- 重新打开你的工作区
- close it again
- 再次关闭它
-move back the .projects dir (say yes to replace questions ? )
- 移回 .projects 目录(说是来替换问题?)
open you workspace
Launch Maven Update
打开你的工作区
启动 Maven 更新
Should be good
应该不错
回答by mel3kings
Simpler fix:
更简单的修复:
- Close Project
- Open Project
- Project > Clean
- Run Maven Update
- 关闭项目
- 开放项目
- 项目 > 清洁
- 运行 Maven 更新
回答by Jo?o Rodrigues
I was using Eclipse Mars and in my case, just close and reopen my IDE did the work.
我正在使用 Eclipse Mars,就我而言,只需关闭并重新打开我的 IDE 即可完成工作。
回答by desperateCoder
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.
似乎删除目录 .metadata/.plugins/org.eclipse.core.runtime/.settings(工作区的默认设置)或 .settings 中的文件 org.eclipse.wst.validation.prefs 将导致验证设置重置为其原始设置。然后您可以使用验证而不会收到错误消息并尝试从那里重置选项。但是,我不确定哪种设置组合会导致问题再次出现。但是,如果是这样,您可以重复该过程。
got this from here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=355012
从这里得到这个: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.
就我而言,我在这个文件夹中没有提到的文件,但我有一堆其他 org.eclipse.wst.* 文件。删除它们都对我有用。
回答by The Appsolit
Another Solution is too simple , deleting .project file then clean the project and maven update will success surely
另一个解决方案太简单了,删除.project文件然后清理项目,maven更新肯定会成功
回答by CCC
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.
该问题与.projects
另一个答案中提到的文件夹无关。解决方法是org.eclipse.wst.validation.prefs
在.settings
文件夹中添加一个名为的文件。这将恢复 eclipse 验证节点。
The content of the file, depending on your eclipse version, might look like this:
根据您的 eclipse 版本,文件的内容可能如下所示:
disabled=06target
eclipse.preferences.version=1
回答by Laura Ritchey
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.
我认为这是一个可能由多个不同来源引起的错误。然而,我只是遇到了同样的错误,只是想出了原因。在我的情况下,我只是尝试通过删除一些临时文件来强制更新一些代码。原来我不小心删除了那个文件。幸运的是,我将它置于源代码控制之下,因此我将文件拉回并使用 Maven 更新了项目。我还确保修复了任何其他错误,以便项目成功清理/更新。
I'm not sure if this will solve your problem, but I hope it helps! Good luck!
我不确定这是否能解决您的问题,但我希望它有所帮助!祝你好运!