今天打包maven项目时遇到一错误

错误细节如下:

only whitespace content allowed before start tag and not -
“only whitespace content allowed before start tag and not -“ 报错解决方案
这里错误是maven目录下的setting.xml格式有错,类似settings标签的前面不应有"-"
“only whitespace content allowed before start tag and not -“ 报错解决方案
遂删掉
“only whitespace content allowed before start tag and not -“ 报错解决方案
删掉后保存,再次打包,遇到以下错

expected START_TAG or END_TAG not TEXT“only whitespace content allowed before start tag and not -“ 报错解决方案
证明标签头前面的“-”没有删干净,继续根据错误提示有问题的地方删除“-”。
全部删除,打包成功
“only whitespace content allowed before start tag and not -“ 报错解决方案

相关文章:

  • 2021-05-02
  • 2021-07-28
  • 2022-12-23
  • 2021-04-28
  • 2021-07-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-05-15
  • 2022-12-23
  • 2022-03-03
  • 2022-12-23
  • 2021-07-24
  • 2021-09-14
相关资源
相似解决方案