解决:[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