主要是從maven 3.8.1需要使用https,但是公司內部maven 是http的所以會存在此問題,以下鏈接包含了解決方法
簡單的方式是使用低版本規避此問題,但是從安全角度支持https 才是最好的解決方法
參考資料
https://stackoverflow.com/questions/67001968/how-to-disable-maven-blocking-external-http-repositores
https://maven.apache.org/docs/3.8.1/release-notes.html