Goto Netbeans installation folder > java > maven > conf
for me it was C:\Program Files\NetBeans 8.2\java\maven\conf, and here I updated the settings.xml file using administrative privilege.
Add this inside mirrors tag of settings.xml
after this restart Netbeans IDE, and central repository will be overridden with the mirror we specified https://repo.maven.apache.org/maven2/.