maven Could not transfer artifact

maven报出Could not transfer artifact错误时

一般解决方法有:

在IDEA 的 setting→Build,Execution,Deployment→Build Tools→Maven→Runner下

找到VM Options: 添加以下代码

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

 

 

或者选择添加证书,例如:阿里云镜像。(只是这个方法我试了很多次,一时可以一时失败)

去到maven阿里云仓库下载证书,并使用Java keytool 工具添加到信任证书。

参考链接:https://blog.csdn.net/ljskr/article/details/84570573

posted on 2020-04-25 20:23  Ye-ye  阅读(4270)  评论(0编辑  收藏  举报

导航