解決 spring-boot-maven-plugin:2.0.3.RELEASE or one of its dependencies co
1,當我使用mvn clean install -D maven.test.skip=true命令執行spring boot專案時,報錯如下
[ERROR] Plugin org.springframework.boot:spring-boot-maven-plugin:2.0.3.RELEASE or one of its dependencies could not be resolved: Failure to find org.springframework.boot:spring-boot-maven-plugin:jar:2.0.3.RELEASE in http://mvn.hz.netease.com/artifactory/repo was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]
2,原因:外掛org.springframework.boot:spring-boot-maven-plugin:2.0.3.RELEASE或其中一個依賴項無法解析,找不到快取在本地倉庫中的org.springframework.boot:spring-boot-maven-plugin:jar:2.0.3.RELEASE,在中心的更新間隔過去或強制更新之前,不會再重新嘗試解析。
本人之所以產生這種原因,也是因為本人使用的是公司的maven倉庫,而公司倉庫中並不存在這個依賴包
3,解決方法:
找到maven在本地的配置檔案,.m2/settings.xml,將其備份為其它檔名,然後找其它同學複製一份非公司倉庫的settings.xml配置檔案過來,然後再重新執行mvn clean install即可