Maven is trying to connect to artifact repository using https, but you don’t have valid ssl certificates.
Let’s use maven option like below to allow maven use insecure connection. Additionally I added -U option to enforce downloading of artifacts. The example use compile goal but of course you can use another variation like install, package, deploy and etc.
mvn clean compile -U -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true
If you enjoyed this post please add the comment below or share this post on your Facebook, Twitter, LinkedIn or another social media webpage.
Thanks in advanced!