# Java 9 build failing with HTTPS certificate exception

**URL:** <https://travis-ci.community/t/java-9-build-failing-with-https-certificate-exception/4364>\
**Category:** Java\
**Tags:** bug\
**Created:** [July 24, 2019, 10:17am UTC](https://travis-ci.community/t/java-9-build-failing-with-https-certificate-exception/4364 "2019-07-24T10:17:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alessiostalla](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/alessiostalla/32/1631_2.png) [@alessiostalla](https://travis-ci.community/u/alessiostalla)\
**Post date:** [July 24, 2019, 10:17am UTC](https://travis-ci.community/t/java-9-build-failing-with-https-certificate-exception/4364/1 "2019-07-24T10:17:44Z")

</div>

[https://travis-ci.com/ManyDesigns/Portofino/jobs/219032281](https://travis-ci.com/ManyDesigns/Portofino/jobs/219032281)

[INFO] Downloading from google-maven-central: [https://maven-central.storage-download.googleapis.com/repos/central/data/org/sonatype/oss/oss-parent/9/oss-parent-9.pom](https://maven-central.storage-download.googleapis.com/repos/central/data/org/sonatype/oss/oss-parent/9/oss-parent-9.pom)

[INFO] Downloading from sonatype: [https://oss.sonatype.org/content/repositories/releases/org/sonatype/oss/oss-parent/9/oss-parent-9.pom](https://oss.sonatype.org/content/repositories/releases/org/sonatype/oss/oss-parent/9/oss-parent-9.pom)

[INFO] Downloading from sonatype-apache: [https://repository.apache.org/content/repositories/releases/org/sonatype/oss/oss-parent/9/oss-parent-9.pom](https://repository.apache.org/content/repositories/releases/org/sonatype/oss/oss-parent/9/oss-parent-9.pom)

[ERROR] [ERROR] Some problems were encountered while processing the POMs:

[FATAL] Non-resolvable parent POM for com.manydesigns:portofino:5.0.2-SNAPSHOT: Could not transfer artifact org.sonatype.oss:oss-parent:pom:9 from/to google-maven-central ([https://maven-central.storage-download.googleapis.com/repos/central/data/](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 and ‘parent.relativePath’ points at wrong local POM @ line 4, column 13

---

<div class="post-metadata">

**Author:** ![dominic](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/dominic/32/14_2.png) [@dominic](https://travis-ci.community/u/dominic)\
**Post date:** [July 24, 2019, 2:09pm UTC](https://travis-ci.community/t/java-9-build-failing-with-https-certificate-exception/4364/2 "2019-07-24T14:09:02Z")

</div>

Sorry for the troubles.

Since you aren’t specifying a `dist:` in your .travis.yml file, this is a side-effect of [our migration to change the default distribution from Trusty to Xenial](https://blog.travis-ci.com/2019-04-15-xenial-default-build-environment).

In brief, your repository’s default changed and `oraclejdk9` isn’t supported on Xenial.

The workaround is to either add `dist: trusty` to your .travis.yml file or use `openjdk9` .

Hope this helps!
