[ERROR] Error executing Maven.

报错如下:

在这里插入图片描述
错误代码提示:

[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
在这里插入图片描述

解决:


用实体引用代替特殊字符:(用 &amp; 代替 & )。保存之后,重新运行即可!

在这里插入图片描述
target目录清除成功,控制台输出结果如下:

在这里插入图片描述

  • 7
    点赞
  • 20
    收藏
    觉得还不错? 一键收藏
  • 3
    评论
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值