maven报出Could not transfer artifact错误时

maven Could not transfer artifact
maven报出Could not transfer artifact错误时
一般解决方法有:
在IDEA 的 setting→Build,Execution,Deployment→Build Tools→Maven→Runner下
【maven报出Could not transfer artifact错误时】找到VM Options: 添加以下代码

-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true

    推荐阅读