今天在项目进行maven install的时候遇到了only whitespace content allowed before start tag and not \u0 (position: START_DOCUMENT这个问题。
解决方案是搜索项目中的maven-metadata-local.xml文件,用notepad打开是很多null或者sublime打开后是一堆0000。
我的是个多模块项目,把所有错误的maven-metadata-local.xml文件清空后项目可正常打包。
参考StackOverflow:
本文讲述了作者在项目中遇到的Maven安装错误,涉及`onlywhitespacecontentallowedbeforestarttag`,问题出在maven-metadata-local.xml文件中包含无效字符。通过清理这些错误文件,多模块项目成功打包。解决方案参考了StackOverflow上的讨论。
https://stackoverflow.com/questions/13929633/maven-install-error-only-whitespace-content-allowed-before-start-tag-and-not
2848

被折叠的 条评论
为什么被折叠?



