我的构建今天开始失败。看起来我们仍然指向一个已弃用的 Maven 存储库?如何更新我的 gradle 构建而不必覆盖每个 mavenCentral?!
如果我执行以下操作,那么我的构建将再次正常工作。但我有很多项目需要在 Jenkins 中构建。
repositories{
mavenCentral(url:'https://repo.maven.apache.org/maven2')
}
这是我们看到的错误:
> Could not resolve commons-lang:commons-lang:2.6.
Required by:
project : > [ snip ]:1.0-SNAPSHOT > net.sf.ezmorph:ezmorph:1.0.6
> Could not resolve commons-lang:commons-lang:2.6.
> Could not get resource 'https://repo1.maven.org/maven2/commons-lang/commons-lang/2.6/commons-lang-2.6.pom'.
> Could not GET 'https://repo1.maven.org/maven2/commons-lang/commons-lang/2.6/commons-lang-2.6.pom'.
> Host name 'repo1.maven.org' does not match the certificate subject provided by the peer (CN=repo.maven.apache.org, O="Sonatype, Inc", L=Fulton, ST=MD, C=US)
TIA!
皮科
最佳答案
这是今天开始的问题,请使用 https://issues.sonatype.org/browse/MVNCENTRAL-2870用于跟踪状态。
关于maven - 如何修复: Host name 'repo1.maven.org' does not match the certificate subject provided,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47274255/