程序问答   发布时间:2022-06-02  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了Gradle 构建失败并出现错误:在以下任何来源中都找不到插件大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

如何解决Gradle 构建失败并出现错误:在以下任何来源中都找不到插件?

开发过程中遇到Gradle 构建失败并出现错误:在以下任何来源中都找不到插件的问题如何解决?下面主要结合日常开发的经验,给出你关于Gradle 构建失败并出现错误:在以下任何来源中都找不到插件的解决方法建议,希望对你解决Gradle 构建失败并出现错误:在以下任何来源中都找不到插件有所启发或帮助;

今天没有对代码进行任何更改,但是 gradle build 停止工作并出现以下错误

FAILURE: Build Failed with an exception.

* Where:
Build file '/data/code/.../build.gradle' line: 2

* what went wrong:
Plugin [ID: 'org.springframework.boot',version: '2.5.0-SNAPSHOT'] was not found in any of the following sources:

- Gradle Core Plugins (plugin is not in 'org.gradle' namespacE)
- Plugin RepositorIEs (Could not resolve plugin artifact 'org.springframework.boot:org.springframework.boot.gradle.plugin:2.5.0-SNAPSHOT')
  Searched in the following repositorIEs:
    maven(https://repo.spring.io/milestonE)
    maven2(https://repo.spring.io/snapshot)
    Gradle Central Plugin Repository

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --deBUG option to get more log output. Run with --scan to get full insights.

* Get more Help at https://Help.gradle.org

BUILD Failed in 1s

尝试查看网络到达spring网站是否有问题,curl显示如下错误

curl https://repo.spring.io/snapshot
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.haxx.se/docs/sslcerts.HTML

curl Failed to verify the legitimacy of the server and therefore Could not
establish a secure connection to it. To learn more about this situation and
how to fix it,please visit the web page mentioned above.

似乎是 Digicert 于“2021 年 7 月 20 日星期二上午 5:30”颁发的春季网站证书,可能是我的 ubuntu 16.04 系统上缺少 CA 证书。

如何解决这个问题?

解决方法

看起来 spring repo 已关闭 https://www.isitdownrightnow.com/repo.spring.io.html 这给我们带来了巨大的痛苦,并且 https://status.spring.io/ 上没有报告此问题

大佬总结

以上是大佬教程为你收集整理的Gradle 构建失败并出现错误:在以下任何来源中都找不到插件全部内容,希望文章能够帮你解决Gradle 构建失败并出现错误:在以下任何来源中都找不到插件所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。