首页 » java

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

   发表于:java评论 (0)   热度:2640

错误解决

这个错误是   maven  的配置文件  setting.xml  格式有错 , 导致,  或者是有多余的字符或者是标签多了一个, 或者是标签错误, 总之就是格式错了.

 我的是setting 里在标签外边多了个字符 , 

 

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 文件配置正确,就好了。

 

 

 

(。・v・。)
喜欢这篇文章吗?欢迎分享到你的微博、QQ群,并关注我们的微博,谢谢支持。