问题描述:更新idea代码后pom.xml文件出现该问题:

大致意思是project下面的子项有问题,有一些特殊符号,格式不对。

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

网上搜了下,有人说把文件里面的空格全删掉,或者粘贴到notepad++编辑器里面,再复制回来,我试了下好像并不行,还有人说重新手打一遍(方法应该可行,但自己太懒-_-)。
最终想到了一个折中的办法,通过依次删除xml文件里面的部分代码,并查看是否仍然报错,即可把问题代码找到。
当我删除如下这一块代码时,问题就消失了,排查发现问题如下,修改即可:element 'project' cannot have character [children], because the type's content type is element-only

相关文章:

  • 2021-07-02
  • 2022-12-23
  • 2021-08-29
  • 2021-09-12
  • 2022-12-23
  • 2022-02-01
  • 2021-04-16
  • 2021-08-24
猜你喜欢
  • 2021-09-12
  • 2022-01-15
  • 2022-12-23
  • 2021-04-14
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案