Suddenly maven task stopped working with PKIX path building failed error in Openshift Pipelines

Solution Verified - Updated -

Issue

  • Maven builds in Tekton pipelines have started failing with the following error:

    PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    
  • Observing unable to find valid certification path to requested target error while maven task attempts to fetch dependencies from our internal Nexus repository.

Environment

  • Red Hat OpenShift Container Platform (RHOCP) 4
  • Red Hat OpenShift Pipelines

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content