Post

Change Maven's Remote Repository in NetBeans8

Change Maven's Remote Repository in NetBeans8

How to change maven’s Remote Repository URL in the NetBeans IDE (from http to https)?

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

1
2
3
4
5
6
<mirror>
      <id>mirror1</id>
      <mirrorOf>central</mirrorOf>
      <name>mirror1</name>
      <url>https://repo.maven.apache.org/maven2/</url>
</mirror>
This post is licensed under CC BY 4.0 by the author.