Unable to build a Java project due to certificates

This most often happens when you use a JVM that is corrupt or has trusted certificates missing.
You should try to build using a different / freshly installed JDK.