this blog
为了实现同样的功能,如果我尝试按照博客中给出的方式在intellij中将其作为一个单独的项目来实现,那么它会非常好地工作。
但如果我试图将其集成到一个项目中,并为现有的构建添加插件id,gradle会给出以下错误信息,
plugins {
id "com.github.lkishalmi.gatling" version "0.3.0"
}
* What went wrong:
Error resolving plugin [id: 'com.github.lkishalmi.gatling', version: '0.3.0']
> Could not GET 'https://plugins.gradle.org/api/gradle/4.2.1/plugin/use/com.github.lkishalmi.gatling/0.3.0'.
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
无法理解为什么它不能为集成项目和为单个项目工作而工作。
有人能告诉我怎么处理这个问题吗,
我一直在寻找解决方案和许多地方,它写我将不得不配置一些证书和许多步骤。
但我不想这样做,因为如果证书是问题所在,那么它也应该是针对单个项目的,如果我删除插件
com.github.lkishalmi.gatling
我无法理解这个问题的性质或逻辑,当有冲突或它的独立证书问题时,它是否出现。
在一个单独的项目中,我尝试从我的项目中添加插件,在这种情况下,它给出了相同的问题,但对于一些添加的插件,如下面添加的插件,
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath('org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.1')
所以我想知道我该怎么做。