My Profile Photo

Hao's Keeper


A blog to place memos


Change Maven's Remote Repository in NetBeans8

https://stackoverflow.com/questions/60031044/how-to-change-mavens-remote-repository-url-in-the-netbeans-ide-from-http-to-ht

Goto Netbeans installation folder > java > maven > conf, and here I updated the settings.xml file using administrative privilege. as http repo link will not work now, just I created an mirror for central repo that is pre-built with IDE which cannot be changed. Add this inside mirrors tag of settings.xml

<mirror>
      <id>mirror1</id>
      <mirrorOf>central</mirrorOf>
      <name>mirror1</name>
      <url>https://repo.maven.apache.org/maven2/</url>
</mirror>