Alternatively you can set maven to use Windows certificate store.
MAVEN_OPTS="-Djavax.net.ssl.trustStoreType=Windows-ROOT"
More details you can find here: https://medium.com/where-3-worlds-meet/how-to-connect-windows-trust-store-with-maven-java-project-cd6447ac8e47