首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >oraclejdk10失败

oraclejdk10失败
EN

Stack Overflow用户
提问于 2019-06-19 10:48:51
回答 2查看 331关注 0票数 0

我和特拉维斯·CI有麻烦。

我开始使用oraclejdk8,但是特拉维斯失败了,比如“期望9到14之间的版本”。

所以现在我正在尝试使用oraclejdk10,但是它继续失败,出现了一条新的错误消息

“命令"~/bin/install-jdk.sh --target”/home/travis/oraclejdk9 9“--工作区”/home/travis/..cache/install-jdk“--特性"9”--许可"BCL"“失败并退出8次期间”。

在这里,构建日志:https://travis-ci.org/DavidGeirola/advxml/builds/547648800

Travis文件

代码语言:javascript
复制
# Use container-based infrastructure
sudo: false
dist: xenial

language: scala
jdk: oraclejdk9
scala:
  - 2.12.8


# These directories are cached to a cloud storage provider "close" to the infrastructure the builds run on.
cache:
  directories:
    - $HOME/.ivy2/cache
    - $HOME/.sbt

before_cache:
  # Cleanup the cached directories to avoid unnecessary cache updates
  - rm -fv $HOME/.ivy2/.sbt.ivy.lock
  - find $HOME/.ivy2/cache -name "ivydata-*.properties" -print -delete
  - find $HOME/.sbt        -name "*.lock"               -print -delete

script:
  - sbt ++$TRAVIS_SCALA_VERSION coverage test coverageReport coverageAggregate

after_success:
  - bash <(curl -s https://codecov.io/bash)
EN

回答 2

Stack Overflow用户

发布于 2019-07-18 19:29:31

也有类似的问题:

代码语言:javascript
复制
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] Downloading from google-maven-central: https://maven-central.storage-download.googleapis.com/repos/central/data/org/apache/maven/plugins/maven-resources-plugin/2.6/maven-resources-plugin-2.6.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.813 s
[INFO] Finished at: 2019-07-18T19:21:41Z
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6: Could not transfer artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.6 from/to google-maven-central (https://maven-central.storage-download.googleapis.com/repos/central/data/): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
The command "eval mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V " failed 3 times.

更改为openjdk11解决了所有问题。

票数 1
EN

Stack Overflow用户

发布于 2019-06-19 15:44:49

我也有同样的问题-而且看起来很古怪。有时,从Oracle下载,有时不起作用。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/56665905

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档