错误代码提示:
[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 ...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 ...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 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 ...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目录清除成功,控制台输出结果如下: