从2020年1月15日起,中央存储库不再支持通过纯HTTP进行不安全的通信,并要求对存储库的所有请求都通过HTTPS进行加密
我们将maven中央存储库从HTTP更改为HTTPS,其中构建对于Java版本8运行良好,但对于Java 7和6运行失败,错误为
Error: Plugin org.apache.maven.plugins:maven-source-plugin:2.1.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-source-plugin:jar:2.1.2: Could not transfer artifact org.apache.maven.plugins:maven-plugins:pom:18 from/to central (https://repo1.maven.org/maven2/): peer not authenticated -> [Help 1]任何建议都将不胜感激。
发布于 2020-01-21 22:50:02
按照指示设置本地存储库以镜像Maven Central,并将该镜像用于您的构建。
Nexus配置为开箱即用,并且可以很容易地作为docker实例运行。
https://stackoverflow.com/questions/59836858
复制相似问题