I got the following error message when I tried to create a Maven project in eclipse. Many have posted about proxies in settings.xml file and also flush the .m2 folder forcin
I have summarised what I did for my issue.
1) Delete .m2 folder. 2) Change the apache-maven-3.5.4\conf\settings.xml as follow
optional
true
http
proxyserver.company.com --> Please change it according to your proxy
8080 -->Please change it accordingly
local.net|some.host.com
3) Try again in cmd. It will work.
4) For eclipse, delete the existing maven project and go to
window ->prefernces -> maven -> user settings -> browse -> configure this path apache-maven-3.5.4\conf\settings.xml
5) Delete .m2 folder.
6) Restart the eclipse and try creating new maven project.
These steps worked for me.