背景
我有一个简单的Clojure 1.9 项目。
它只配置了一个最小的.travis.yml
文件。
language: clojure
lein: 2.8.1
jdk:
- openjdk8
- openjdk9
- oraclejdk8
- oraclejdk9
Travis CI
OpenJDK 8、OracleJDK 8和OracleJDK 9的构建成功了。然而,在lein deps
阶段,OpenJDK 9失败了。
从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的bug还是我的配置有误?
- 我该如何修复它?
谢谢!