報錯如下:
錯誤代碼提示:
[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執(zhí)行錯誤。
在構建有效設置時遇到了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 實體引用、注釋、命名規(guī)則https://blog.csdn.net/jiankunking/article/details/17992235
解決:
用實體引用代替特殊字符:(用 & 代替 & )。保存之后,重新運行即可!
target目錄清除成功,控制臺輸出結果如下:文章來源:http://www.zghlxwxcb.cn/news/detail-412514.html
文章來源地址http://www.zghlxwxcb.cn/news/detail-412514.html
到了這里,關于[ERROR] Error executing Maven.的文章就介紹完了。如果您還想了解更多內容,請在右上角搜索TOY模板網以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網!