1.Please check your AEM instance is up and running correctly? 2. Try
checking your settings.xml file? If it is using proxy please re check.
Check your maven is able to download the resources to m2 directory.
please check this
solution.http://mitchfincher.blogspot.com/2018/07/problem-solved-failed-to-execute-goal.html?m=1
hope this helps you.thanks!!