解決:[ERROR] Error executing Maven. [ERROR] 1 problem was encountered while building the effective set


1. 報錯如下:

[ERROR] Error executing Maven.
[ERROR] 1 problem was encountered while building the effective settings
[FATAL] Non-parseable settings D:\ChengXu\maven\apache-maven-3.5.2\conf\settings.xml: end tag name </settings> must match start tag name <mirrors> from line 50 (position: TEXT seen ...</activeProfiles>\n\t\n</settings>... @107:12)  @ D:\ChengXu\maven\apache-maven-3.5.2\conf\settings.xml, line 107, column 12

2. 執行 mvn install -Dmaven.test.skip=true 也一直不成功。

3. 原因: maven 的配置文件 setting.xml 有錯。

在配置文件中多了一行:<mirrors> 導致配置文件的格式不正確。

4. 去掉多的這一行,保證 setting 文件配置正確,就好了。

<原文地址:https: cloud.tencent.com developer article 1486469 div>


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM