m2e with ssl certificate-based authentication
In your run configurations select your maven build and then select the JRE tab at the top of the dialog. Put your SSL parameters into the VM arguments text-area.
that's what fixed it for me.
Options that didn't work for me
- Installing certificate to java > jre > lib > security > cacerts
- Providing cacerts in java run configuration vm arguments
- Updating eclipse to latest versions like mars or neon
- Updating maven plugin for eclipse to 1.7.0
Steps that resolved the issue for me
- Download certificate file & add in eclipse at Preferences > Remote Systems > SSL > Add
- Clear .m2 > repository folder of all existing files
- Open eclipse, right-click on project and Select Maven > Update Project. Choose Force Update of Snapshots/Releases
updated on 9/19/2017
- If nothing else works, Installing the certificate to Java on your machine @ java > jre > lib > security > cacerts can help
I had exactly the same problem: Eclipse could not connect to external maven repository using embedded maven installation in case the repository requires a client SSL certificate.
The problem was solved by upgrading to latest jvm (in my case - 1.8.0u52) and upgrading Eclipse m2e plugin to version 1.6.1 (with Eclipse version 4.4.0).