pom.xml中出现警告提示:
No grammar constraints (DTD or XML Schema) referenced in the document.
原因: 未指定 DOCTYPE 造成的警告提示。
解决方法1: 在pom.xml文头部添加如下代码段即可(亲测有效),
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xml>
解决方法2: 常用方法,关闭XML验证
工具栏:windows => preferences => xml => xml files => validation => Indicate when no grammar is specified:选择Ignore即可。