Java 9 build failing with HTTPS certificate exception

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

[INFO] Downloading from sonatype: 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

[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/): 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

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.

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!

Imprint