天天看點

解決:[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 set

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

3. 原因: maven 的配置檔案 setting.xml 有錯。

在配置檔案中多了一行:<mirrors> 導緻配置檔案的格式不正确。

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

4. 去掉多的這一行,保證 setting 檔案配置正确,就好了。