我在IBM Rational Software Architect for Java中使用Java6,在maven安装过程中出现以下错误: ERROR]无法在项目父项目上执行goal org.apache.maven.plugins:maven-install-plugin:2.3.1:install (默认安装):Execution default- goal org.apache.maven.plugins:maven-install-plugin:2.3.1:install安装失败:插件org.apache.maven.plugins:maven-install-plugin:2.3.1或其依赖项无法解析:收集依赖项失败对于org.apache.maven.plugins:maven-install-plugin:jar:2.3.1 ():无法读取org.apache.maven的项目描述符。maven:maven- org.apache:apache:pom:3 -api:jar:2.0.6:无法将项目插件从中心(https://repo.maven.apache.org/maven2)传输到中心(https://repo.maven.apache.org/maven2):收到致命警报: protocol_version to https://repo.maven.apache.org/maven2/org/apache/apache/3/apache-3.pom -> Help 1
我尝试设置VM参数-Dhttps.protocols=TLSv1.2和-Djdk.tls.client.protocols=TLSv1.2,但在浏览器中直接打开时出现错误persists.Hitting https://repo.maven.apache.org/maven2。如果我更新指向http://repo.maven.apache.org/maven2的链接,即https one,它会提示需要https。如果遗失了什么,请告诉我。
发布于 2020-04-21 01:40:57
我得到的解决方案是Maven不再支持HTTP,所以我们需要在pom中使用不安全的url:http://insecure.repo1.maven.org/maven2/。
https://stackoverflow.com/questions/61260394
复制相似问题