首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Spring Boot Gradle -无法解析配置的所有工件

Spring Boot Gradle -无法解析配置的所有工件
EN

Stack Overflow用户
提问于 2019-06-28 21:16:07
回答 1查看 2.4K关注 0票数 1

我的一个本地版本出现了问题。我使用了spring初始化器来生成一个演示gradle项目。执行gradle bootRun会导致以下错误:

代码语言:javascript
运行
复制
FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'demo'.
> Could not resolve all artifacts for configuration ':classpath'.
   > Could not resolve org.springframework.boot:spring-boot-gradle-plugin:2.1.6.RELEASE.
     Required by:
         project : > org.springframework.boot:org.springframework.boot.gradle.plugin:2.1.6.RELEASE
      > Could not resolve org.springframework.boot:spring-boot-gradle-plugin:2.1.6.RELEASE.
         > Could not parse POM https://plugins.gradle.org/m2/org/springframework/boot/spring-boot-gradle-plugin/2.1.6.RELEASE/spring-boot-gradle-plugin-2.1.6.RELEASE.pom
            > Could not resolve org.springframework.boot:spring-boot-tools:2.1.6.RELEASE.
               > Could not resolve org.springframework.boot:spring-boot-tools:2.1.6.RELEASE.
                  > Could not parse POM https://plugins.gradle.org/m2/org/springframework/boot/spring-boot-tools/2.1.6.RELEASE/spring-boot-tools-2.1.6.RELEASE.pom
                     > Could not resolve org.springframework.boot:spring-boot-parent:2.1.6.RELEASE.
                        > Could not resolve org.springframework.boot:spring-boot-parent:2.1.6.RELEASE.
                           > Could not parse POM https://plugins.gradle.org/m2/org/springframework/boot/spring-boot-parent/2.1.6.RELEASE/spring-boot-parent-2.1.6.RELEASE.pom
                              > Could not resolve org.springframework.boot:spring-boot-dependencies:2.1.6.RELEASE.
                                 > Could not resolve org.springframework.boot:spring-boot-dependencies:2.1.6.RELEASE.
                                    > Could not parse POM https://plugins.gradle.org/m2/org/springframework/boot/spring-boot-dependencies/2.1.6.RELEASE/spring-boot-dependencies-2.1.6.RELEASE.pom
                                       > Could not resolve org.springframework.data:spring-data-releasetrain:Lovelace-SR9.
                                          > Could not resolve org.springframework.data:spring-data-releasetrain:Lovelace-SR9.
                                             > Could not get resource 'https://plugins.gradle.org/m2/org/springframework/data/spring-data-releasetrain/Lovelace-SR9/spring-data-releasetrain-Lovelace-SR9.pom'.
                                                > Could not HEAD 'https://repo.jfrog.org/artifactory/libs-release-bintray/org/springframework/data/spring-data-releasetrain/Lovelace-SR9/spring-data-releasetrain-Lovelace-SR9.pom?referrer'.
                                                   > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

* 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

这似乎只是标准版本的问题,而不是快照。

EN

回答 1

Stack Overflow用户

发布于 2019-08-01 20:41:24

您应该升级gradle版本,当前升级到Gradle 5.5.1也可以

https://plugins.gradle.org/plugin/org.springframework.boot

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/56807659

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档