背景
我有一个简单的 Clojure 1.9项目。
它配置了一个最小的.travis.yml
.
language: clojure
lein: 2.8.1
jdk:
- openjdk8
- openjdk9
- oraclejdk8
- oraclejdk9
特拉维斯 CI
OpenJDK 8、OracleJDK 8 和 OracleJDK 9 的构建成功。但是,OpenJDK 9 在该lein deps
阶段失败了。
无法从 Clojars 中检索五个工件。它们是clojure-complete
、clj-http
、pedestal.service
和pedestal.jetty
。pedestal.service-tools
似乎是一些与证书有关的问题。我在下面包含了一些日志。
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.
问题
- 为什么它只发生在 OpenJDK9 构建中?
- 这是 Travis CI 还是我的配置的错误?
- 我该如何解决?
谢谢!