pom文件出现Element 'xxxxxxx' cannot have character [children],because the type's content type is element-only问题

1)问题描述:

pom.xml文件中出现

Element 'xxxxxxx' cannot have character [children],because the type's content type is element-only.

2)问题原因:

配置文件中的dependencies节点下面只能是元素节点,不能有字符文本存在。

3)解决方法:

仔细检查文档,可能会存在标点符号,空格等其他文本字符。

posted @ 2019-11-06 21:59  小六boss  阅读(985)  评论(0编辑  收藏  举报