idea maven Could not transfer artifact


aven报出Could not transfer artifact错误时

一般解决方法有:

在IDEA 的 settingBuild,Execution,DeploymentBuild ToolsMavenRunner

找到VM Options: 添加以下代码

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

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

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

相关