亲测有效:解决could not calculate build plan:plugin org\apache\maven\plugins\maven-resources-plugin

遇到的错误如下

是因为由于TLSv1.1 协议不安全, 出于PCI 安全标准的原因, 从2018-06-18起, maven Sonatype 中央仓库不再支持 TLSv1.1 以及以下的协议版本,原文参见 no longer supports TLSv1.1 and below  官方说明

解决办法如下:

在默认的java vm arguments处输入-Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2

(PS:输入-Dhttps.protocols=TLSv1.2并无效果,我的maven是3.3.9,我的jdk是1.7版本)

猜你喜欢

转载自blog.csdn.net/gutie_bartholomew/article/details/83055398