eclipse 出现The preferences for the xdoclet runtime does not point to a valid installation.错误的解决办法

eclipse 插件在新建一个动态web工程的时候会出现The preferences for the xdoclet runtime does not point to a valid installation.错误

如果你没有装xdoclet也不想装的话可以在工程的属性里去掉

具体步骤是:

右键工程属性找到Project Facets,

在右边的xml Doclet 点右下角的add/remove按钮,
具体如下图所示:

eclipse 出现The preferences for the xdoclet runtime does not point to a valid installation.错误的解决办法
在弹出的对话框里去掉WebDoclet的勾就好了