This is the "correct" way to fix the issue. You need to download the certificate from the repository and manually add it to your Java truststore. Step 1: Download the Certificate

When Maven connects to a repository (e.g., https://apache.org ), it uses the Java Runtime Environment (JRE) to handle the SSL/TLS connection. Java maintains a file called cacerts , which is a "truststore" containing a list of all the Certificate Authorities (CAs) it trusts. The error occurs if:

Are you working behind a or on a private home network ? Knowing this can help narrow down which certificate you need to import.

mvn clean install -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true Use code with caution. Solution 2: The Permanent Fix (Importing the Certificate)

You are using an old version of Java that doesn't have the modern Root Certificates used by Maven Central.

my-corp-proxy true https ://example.com 8080 localhost|127.0.0.1 Use code with caution.

Your company intercepts HTTPS traffic to scan it, replacing the original certificate with a self-signed corporate one that your Java truststore doesn't recognize.