报错如下:
错误代码提示:
[ERROR] Error executing Maven.
[ERROR] 2 problems were encountered while building the effective settings
[FATAL] Non-parseable settings D:\apache-maven-3.6.2&repository\apache-maven-3.6.2\conf\settings.xml: entity reference name can not contain character \' (position: START_TAG seen ...<localRepository>D:\apache-maven-3.6.2&repository\... @55:54) @ D:\apache-maven-3.6.2&repository\apache-maven-3.6.2\conf\settings.xml, line 55, column 54
[FATAL] Non-parseable settings D:\apache-maven-3.6.2&repository\apache-maven-3.6.2\conf\settings.xml: entity reference name can not contain character \' (position: START_TAG seen ...<localRepository>D:\apache-maven-3.6.2&repository\... @55:54) @ D:\apache-maven-3.6.2&repository\apache-maven-3.6.2\conf\settings.xml, line 55, column 54
Process finished with exit code 1
[ERROR]中的关键提示信息:
[ERROR] Error executing Maven.
[ERROR] 2 problems were encountered while building the effective settings
[FATAL] Non-parseable settings D:\apache-maven-3.6.2&repository\apache-maven-3.6.2\conf\settings.xml: entity reference name can not contain character \' (position: START_TAG seen ...<localRepository>D:\apache-maven-3.6.2&repository\... @55:54) @ D:\apache-maven-3.6.2&repository\apache-maven-3.6.2\conf\settings.xml, line 55, column 54
翻译:
[ERROR] Maven执行错误。
在构建有效设置时遇到了2个问题
\conf\settings.xml:实体引用名称不能包含字符\'(位置:START_TAG seen…D:\apache-maven-3.6.2&repository\…@ D:\apache-maven-3.6.2 \conf\settings.xml,第55行,第54列
错误分析:
\conf\ settings.xml:实体引用名称不能包含字符’(位置:START_TAG seen…D:\apache-maven-3.6.2&repository\…@ D:\apache-maven-3.6.2 \conf\settings.xml,第55行,第54列
根据信息提示,打开我们的maven下的本地仓库下的settings文件(路径:D:\apache-maven-3.6.2&repository\apache-maven-3.6.2\conf\settings.xml ),根据路径用记事本或EditPlus打开settings.xml文件,查看我们的maven配置。
XML 实体引用、注释、命名规则https://blog.csdn.net/jiankunking/article/details/17992235
解决:
用实体引用代替特殊字符:(用 & 代替 & )。保存之后,重新运行即可!
target目录清除成功,控制台输出结果如下:文章来源:https://www.toymoban.com/news/detail-412514.html
文章来源地址https://www.toymoban.com/news/detail-412514.html
到了这里,关于[ERROR] Error executing Maven.的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!