GlassFish CI has certificate exceptions when contacting sonatype repo
Builds of GlassFish fail because of:
07:41:54 [ERROR] Failed to execute goal on project servlet: Could not resolve dependencies for project org.glassfish.tests.embedded.web:servlet:war:7.0.10-SNAPSHOT:
Failed to collect dependencies at net.sourceforge.htmlunit:htmlunit:jar:2.70.0: Failed to read artifact descriptor for net.sourceforge.htmlunit:htmlunit:jar:2.70.0:
The following artifacts could not be resolved: net.sourceforge.htmlunit:htmlunit:pom:2.70.0 (absent):
Could not transfer artifact net.sourceforge.htmlunit:htmlunit:pom:2.70.0 from/to sonatype-nexus-staging (https://jakarta.oss.sonatype.org/content/repositories/staging/):
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [Help 1]
Can this be fixed? Perhaps the JDK certificates need updating?