You need to install your network ssl certificate to your jre cacerts.
Step 1 : Get certificate.
- Open https://repo.maven.apache.org URL using chrome browser.
- Click on view certificate
- select Top most certificate on chain and drag and drop to desktop.
Step 2 : install certificate to cacerts
- open command prompt or terminal and type command
mvn -version
- Grab path to jre which would be shown to your after typing above command.
- Download this tool.
- select open option in that tool and navigate to that path which you grabbed at point 2. Now you are at jre folder. Open lib folder. Open security folder.(YOURMAVENJDKPATH/jre/lib/security/cacerts)
- Select cacerts file located in that security folder.Now you can see all the certificates in that tool. Tool would ask for password enter "changeit"(without double quote string changeit is the password)
- find out import certificate icon and click on it.
- Select the certificate which you downloaded in step 1.
- Save your changes and close the tool.
Now your problem is resolved.