在Eclipse中禁用XML验证 [英] Disable XML validation in Eclipse
问题描述
我的Eclipse每次保存文件时验证XML文件,需要一段时间来验证它们。
该项目是使用gwt-maven-plugin创建的。
My Eclipse validates XML files every time I save a file and it takes a while to validate them. The project is created using gwt-maven-plugin.
XML文件不在Eclipse中的任何Source文件夹构建路径下,它们由SmartGWT自动生成在src / main / webapp / [GwtModule]> / sc
The XML files are not under any Source folder build path in Eclipse, they are auto generated by SmartGWT under src/main/webapp/[GwtModule]>/sc
所有这些XML文件都标有错误内容不允许在prolog,每次我运行项目我必须确认我想运行项目有错误,尽管没有(一切正常)。
Also all these XML files are marked with the error "Content is not allowed in prolog" and every time I run the project I have to confirm that I want to run the project with errors though there are none (and everything works fine).
我尝试暂停所有验证器在Eclipse下 - >
I tried Suspending all Validators under Eclipse -> Window -> Preferences -> Validation but to no avail.
任何想法如何阻止Eclipse每次都烦我?
Any idea how I can stop Eclipse from annoying me every time?
推荐答案
属性>验证
you have two options:
- 配置工作区设置(禁用当前工作区的验证)
- Configure Workspace Settings (disable the validation for the current workspace)
取消选中 手册和构建: XML模式验证器, XML验证器
- 检查启用项目特定设置(禁用此项目的验证)
- Check enable project specific settings (disable the validation for this project)
取消选中手册和构建: XML模式验证器, XML验证器
- 右键单击项目,然后选择验证使错误消失
- Right-click on the project and select Validate to make the errors disappear
这篇关于在Eclipse中禁用XML验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!