我刚刚开始制作插件,并希望使用gradle和java制作IntelliJ插件。现在,仅学习基础知识,我要做的就是更改IntelliJ中的菜单栏。但是,在this IntelliJ tutorial之后,我使用Java和IntelliJ平台插件作为其他库/框架创建了Gradle项目,并且在构建时,即使我在创建项目后根本不进行任何更改,也遇到了错误消息不明白,也不知道如何解决:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'project.project'.
> Could not resolve all files for configuration ':detachedConfiguration1'.
> Could not resolve com.jetbrains.intellij.idea:ideaIC:2019.2.3.
Required by:
project :
> Could not resolve com.jetbrains.intellij.idea:ideaIC:2019.2.3.
> Could not get resource 'https://cache-redirector.jetbrains.com/www.jetbrains.com/intellij-repository/releases/com/jetbrains/intellij/idea/ideaIC/2019.2.3/ideaIC-2019.2.3.pom'.
> Could not GET 'https://cache-redirector.jetbrains.com/www.jetbrains.com/intellij-repository/releases/com/jetbrains/intellij/idea/ideaIC/2019.2.3/ideaIC-2019.2.3.pom'.
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
但是,当我创建一个gradle项目,并且不使用IntelliJ Platform Plugin时,我能够构建和创建任务等。尽我所能告诉我它工作正常。我正在使用:IntelliJ 2019.2.3摇篮5.6.2Java 8
我以为我很新,所以我缺少一些简单的东西,但是在其他可以使用的地方,我还没有看到解决此问题的方法。感谢您提供任何帮助。
错误的最后一行看起来像是证书链的问题。当Gradle插件尝试下载IntelliJ IDEA v2019.2.3的内部版本时,会发生这种情况。但是,当您构建通用项目时,不会涉及IntelliJ的Gradle插件。
您是否尝试将失败的GET
语句中的URL粘贴到浏览器的地址栏中?www.jetbrains.com/intellij-repository/releases/com/jetbrains/intellij/idea/ideaIC/2019.2.3/ideaIC-2019.2.3.pom
POM文件是否下载或您收到有关证书的错误?
如果出现证书错误,搜索sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
将在JDK的密钥库中发布有关如何进行import a server certificate and install it的信息。