# Could not get resource 'https://plugins.gradle.org/m2/com/gradle/build-scan/com.gradle.build-scan.gradle.plugin/1.13.2/com.gradle.build-scan.gradle.plugin-1.13.2.jar'

**URL:** <https://discuss.elastic.co/t/could-not-get-resource-https-plugins-gradle-org-m2-com-gradle-build-scan-com-gradle-build-scan-gradle-plugin-1-13-2-com-gradle-build-scan-gradle-plugin-1-13-2-jar/140074>\
**Category:** Elasticsearch\
**Created:** [July 16, 2018, 2:57am UTC](https://discuss.elastic.co/t/could-not-get-resource-https-plugins-gradle-org-m2-com-gradle-build-scan-com-gradle-build-scan-gradle-plugin-1-13-2-com-gradle-build-scan-gradle-plugin-1-13-2-jar/140074 "2018-07-16T02:57:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![wonho\_choi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wonho_choi/32/33357_2.png) [@wonho\_choi](https://discuss.elastic.co/u/wonho_choi)\
**Post date:** [July 16, 2018, 2:57am UTC](https://discuss.elastic.co/t/could-not-get-resource-https-plugins-gradle-org-m2-com-gradle-build-scan-com-gradle-build-scan-gradle-plugin-1-13-2-com-gradle-build-scan-gradle-plugin-1-13-2-jar/140074/1 "2018-07-16T02:57:56Z")

</div>

I've run ES master branch (7.0.0-Alpha) with gradle run

But It showed  
Error resolving plugin [id: 'com.gradle.build-scan', version: '1.13.2']

> Could not resolve all dependencies for configuration 'detachedConfiguration1'.  
> Could not determine artifacts for com.gradle.build-scan:com.gradle.build-scan.gradle.plugin:1.13.2  
> Could not get resource '[https://plugins.gradle.org/m2/com/gradle/build-scan/com.gradle.build-scan.gradle.plugin/1.13.2/com.gradle.build-scan.gradle.plugin-1.13.2.jar](https://plugins.gradle.org/m2/com/gradle/build-scan/com.gradle.build-scan.gradle.plugin/1.13.2/com.gradle.build-scan.gradle.plugin-1.13.2.jar)'.  
> Could not HEAD '[https://plugins.gradle.org/m2/com/gradle/build-scan/com.gradle.build-scan.gradle.plugin/1.13.2/com.gradle.build-scan.gradle.plugin-1.13.2.jar](https://plugins.gradle.org/m2/com/gradle/build-scan/com.gradle.build-scan.gradle.plugin/1.13.2/com.gradle.build-scan.gradle.plugin-1.13.2.jar)'.  
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

I wonder that Is there the resource? or my network firewall problem?

ps : [https://repo.jfrog.org/artifactory/libs-release-bintray/com/gradle/build-scan/com.gradle.build-scan.gradle.plugin/1.13.2/com.gradle.build-scan.gradle.plugin-1.13.2.jar?referrer](https://repo.jfrog.org/artifactory/libs-release-bintray/com/gradle/build-scan/com.gradle.build-scan.gradle.plugin/1.13.2/com.gradle.build-scan.gradle.plugin-1.13.2.jar?referrer) is 404 error

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [July 16, 2018, 3:29am UTC](https://discuss.elastic.co/t/could-not-get-resource-https-plugins-gradle-org-m2-com-gradle-build-scan-com-gradle-build-scan-gradle-plugin-1-13-2-com-gradle-build-scan-gradle-plugin-1-13-2-jar/140074/2 "2018-07-16T03:29:56Z")

</div>

> [@wonho\_choi](#):
>
> Could not HEAD '[https://plugins.gradle.org/m2/com/gradle/build-scan/com.gradle.build-scan.gradle.plugin/1.13.2/com.gradle.build-scan.gradle.plugin-1.13.2.jar](https://plugins.gradle.org/m2/com/gradle/build-scan/com.gradle.build-scan.gradle.plugin/1.13.2/com.gradle.build-scan.gradle.plugin-1.13.2.jar)'.  
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

This is a TLS error. Your JVM doesn't trust the cert for `plugins.gradle.org`.  
My guess is that you're running OpenJDK 10, which ships with an incomplete list of CA certs.

You'll either need to run Oracle JDK 10, or update your JRE's `cacerts` with a more comprehensive list.

This issue & associated commits shows how we did that for the Elasticsearch docker images.

- [6.3 regression: CA keystore missing certificates, AWS plugins not working · Issue #171 · elastic/elasticsearch-docker · GitHub](https://github.com/elastic/elasticsearch-docker/issues/171)

---

<div class="post-metadata">

**Author:** ![wonho\_choi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wonho_choi/32/33357_2.png) [@wonho\_choi](https://discuss.elastic.co/u/wonho_choi)\
**Post date:** [July 17, 2018, 12:15am UTC](https://discuss.elastic.co/t/could-not-get-resource-https-plugins-gradle-org-m2-com-gradle-build-scan-com-gradle-build-scan-gradle-plugin-1-13-2-com-gradle-build-scan-gradle-plugin-1-13-2-jar/140074/3 "2018-07-17T00:15:16Z")

</div>

Thanks for the reply  
According to your reply I've found some article like - [https://github.com/gradle/gradle/issues/5051](https://github.com/gradle/gradle/issues/5051)  
But Sadly I'm using oracle jdk 10 and couldn't fix it.  
I'm trying to find com.gradle.build-scan cacerts  
If I fix it, I'll touch this article

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [July 17, 2018, 12:33am UTC](https://discuss.elastic.co/t/could-not-get-resource-https-plugins-gradle-org-m2-com-gradle-build-scan-com-gradle-build-scan-gradle-plugin-1-13-2-com-gradle-build-scan-gradle-plugin-1-13-2-jar/140074/4 "2018-07-17T00:33:29Z")

</div>

Are you behind a corporate proxy?

Some proxies intercept TLS traffic by replacing the certificates for all sites with their own, signed by their own CA. If you have such a proxy then you will either need to by-pass it (which is not likely to be easy) or install the proxy's CA into your JVM's cacert file (which is not good for your security, but you don't have much choice here).

---

<div class="post-metadata">

**Author:** ![wonho\_choi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wonho_choi/32/33357_2.png) [@wonho\_choi](https://discuss.elastic.co/u/wonho_choi)\
**Post date:** [July 17, 2018, 12:54am UTC](https://discuss.elastic.co/t/could-not-get-resource-https-plugins-gradle-org-m2-com-gradle-build-scan-com-gradle-build-scan-gradle-plugin-1-13-2-com-gradle-build-scan-gradle-plugin-1-13-2-jar/140074/5 "2018-07-17T00:54:28Z")

</div>

Now, I'm behind my company net, But I've tried at my home and got same result.  
Also tried using external network like phone lTE net. Anyway I'll try at home again when I After work(Here is Korea, and now is AM). So In the meantime, I'm trying to find install ca into my cacert file.  
If I got a way, I'll wrote that~

---

<div class="post-metadata">

**Author:** ![wonho\_choi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wonho_choi/32/33357_2.png) [@wonho\_choi](https://discuss.elastic.co/u/wonho_choi)\
**Post date:** [July 18, 2018, 2:43pm UTC](https://discuss.elastic.co/t/could-not-get-resource-https-plugins-gradle-org-m2-com-gradle-build-scan-com-gradle-build-scan-gradle-plugin-1-13-2-com-gradle-build-scan-gradle-plugin-1-13-2-jar/140074/6 "2018-07-18T14:43:36Z")

</div>

Problem is a corporate proxy.  
I can run at my home.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 15, 2018, 2:43pm UTC](https://discuss.elastic.co/t/could-not-get-resource-https-plugins-gradle-org-m2-com-gradle-build-scan-com-gradle-build-scan-gradle-plugin-1-13-2-com-gradle-build-scan-gradle-plugin-1-13-2-jar/140074/7 "2018-08-15T14:43:38Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
