Could not resolve all files for configuration ':benchmarks:classpath'

(Alice) #1

elasticsearch version: 5.5.2
OS: Windows
When I compile elasticsearch source code with gradle, I encountered a problem, such as:

  • What went wrong:
    A problem occurred configuring project ':benchmarks'.

Could not resolve all files for configuration ':benchmarks:classpath'.
Could not resolve com.github.jengelman.gradle.plugins:shadow:1.2.3.
Required by:
project :benchmarks
Could not resolve com.github.jengelman.gradle.plugins:shadow:1.2.3.
Could not get resource '
Could not GET '
gradle/plugins/shadow/1.2.3/shadow-1.2.3.pom'. PKIX path building f
ailed: unable to fin
d valid certification path to requested target

Can anyone give me some advice? Thanks a lot.

(Daniel Mitterdorfer) #2


something is wrong with your certificate configuration in the JDK as indicated by the error message: PKIX path building failed: unable to find 
valid certification path to requested target

This Stackoverflow thread provides some pointers.


(Alice) #3

Well, I'm a newer. Can you say more in detail? Thanks a lot.


(Alice) #4

I have download a SSLPoke.class and run with the command(
java SSLPoke developer. 443) in CMD.exe, but it got a error:
D:\jdk1.8\bin>java SSLPoke 443 Connection timed out: connect
at Method)
at SSLPoke.main(
Can anyone give some advice?

(Daniel Mitterdorfer) #5

Hi @saliormoon,

you get:

You cannot even connect to this site from your network and this can have a lot of reasons, e.g. you are behind a proxy and it blocks connections to that host.

I get this when I try to connect with curl:

daniel@io:~ $ curl -v
* Rebuilt URL to:
*   Trying
* Connected to ( port 443 (#0)
* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
* Server certificate:
* Server certificate: Let's Encrypt Authority X3
* Server certificate: DST Root CA X3
> GET / HTTP/1.1
> Host:
> User-Agent: curl/7.43.0
> Accept: */*
< HTTP/1.1 200 OK

So I think you need to fix your (Java?) network issues before-hand.


(Alice) #6

Yes, thanks a lot. I can't access external network and have to use Cntlm to configure some proxy settings. So it's maybe that the proxy settings occur errors.

(Alice) #7

This problem has been resolved. Thanks a lot.

(Daniel Mitterdorfer) #8

Hi @saliormoon,

glad to hear that.


(system) #9

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