Background
I have a simple Clojure 1.9 project.
It was configured with a minimal .travis.yml
.
language: clojure
lein: 2.8.1
jdk:
- openjdk8
- openjdk9
- oraclejdk8
- oraclejdk9
Travis CI
The builds for OpenJDK 8, OracleJDK 8 and OracleJDK 9 succeeded. However, it failed for OpenJDK 9 in the lein deps
stage.
Five artifacts cannot to be retrieved from Clojars. They are clojure-complete
, clj-http
, pedestal.service
, pedestal.jetty
and pedestal.service-tools
.
It seems to be some issues related to certificates. I have included some of the logs below.
Could not find artifact clojure-complete:clojure-complete:jar:0.2.4 in central (https://repo1.maven.org/maven2/)
Could not transfer artifact clojure-complete:clojure-complete:jar:0.2.4 from/to clojars (https://repo.clojars.org/): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
...
Could not transfer artifact clojure-complete:clojure-complete:pom:0.2.4 from/to clojars (https://repo.clojars.org/): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
...
This could be due to a typo in :dependencies, file system permissions, or network issues.
If you are behind a proxy, try setting the 'http_proxy' environment variable.
Questions
- Why it happened to OpenJDK9 builds only?
- Is it a bug for Travis CI or my configurations?
- How can I fix it?
Thanks!