Java 9 build failing with HTTPS certificate exception

[INFO] Downloading from google-maven-central:

[INFO] Downloading from sonatype:

[INFO] Downloading from sonatype-apache:

[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 ( PKIX path building failed: 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!