如何忽略Eclipse中特定文件夹中的XML警告?

问题描述:

我正在使用Eclipse和插件m2e(它在Eclipse中增加了对Maven的支持)来构建Java项目.

I'm building a java project with Eclipse and the plugin m2e (it adds Maven support in Eclipse).

target目录中有一些XML Surefire报告.它们生成烦人的警告,因为它们既没有DTD也没有XML模式.

There some XML Surefire reports ine the target directory. They generate annoying warnings because they have neither a DTD nor an XML Schema.

如何告诉Eclipse忽略**/target文件夹?

How can you tell Eclipse to ignore **/target folders ?

请参见下图:
打开首选项Window > Preferences

See the following image:
Open the preferences Window > Preferences