执行maven命令即mvn install时发生异常 [英] Exception occurs while executing maven command i.e. mvn install
问题描述
我安装了Maven 3.2.5并在项目目录中执行了mvn install
.
它显示以下错误:
I installed Maven 3.2.5 and executed mvn install
being in my project Directory.
It shows following error:
插件org.apache.maven.plugins:maven-resources-plugin:2.6或其依赖项之一无法解析:无法读取org.apache.maven.plugins:maven-resources-plugin:jar的工件描述符:2.6:无法从/向中央传输工件org.apache.maven.plugins:maven-resources-plugin:pom:2.6( https://repo.maven.apache.org/maven2 ):握手期间远程主机关闭连接:SSL对等点错误关闭
Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6: Could not transfer artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.6 from/to central (https://repo.maven.apache.org/maven2): Remote host closed connection during handshake: SSL peer shut down incorrectly
请帮助我解决这个问题.
Please help me to solve this problem.
推荐答案
您很可能在某些代理后面,这些代理会干扰SSL与Maven Central的通信.
You are most likely behind some proxy which interferes with SSL communicating with Maven Central.
这篇关于执行maven命令即mvn install时发生异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!