title: How to change maven's Remote Repository URL in the NetBeans IDE (from http to https)?
body: <p>When trying to run a NetBeans project, I get the following error message:</p>
  
  <blockquote>
    <p>Failed to execute goal
    org.apache.maven.plugins:maven-surefire-plugin:2.10:test
    (default-test) on project MyNetBeansProject: Execution default-test of goal
    org.apache.maven.plugins:maven-surefire-plugin:2.10:test failed:
    Plugin org.apache.maven.plugins:maven-surefire-plugin:2.10 or one of
    its dependencies could not be resolved: Failed to collect dependencies
    for org.apache.maven.plugins:maven-surefire-plugin:jar:2.10 (): Failed
    to read artifact descriptor for
    org.apache.maven.surefire:surefire-booter:jar:2.10: Could not transfer
    artifact org.apache.maven.surefire:surefire-booter:pom:2.10 from/to
    central (<a href="http://repo.maven.apache.org/maven2" rel="noreferrer">http://repo.maven.apache.org/maven2</a>): Failed to transfer
    file:
    <a href="http://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-booter/2.10/surefire-booter-2.10.pom" rel="noreferrer">http://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-booter/2.10/surefire-booter-2.10.pom</a>.
    Return code is: 501 , ReasonPhrase:HTTPS Required. -> [Help 1]</p>
  </blockquote>
  
  <p>The following part of the error message is the most important one:</p>
  
  <blockquote>
    <p>Failed to transfer file:
    <a href="http://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-booter/2.10/surefire-booter-2.10.pom" rel="noreferrer">http://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-booter/2.10/surefire-booter-2.10.pom</a>.
    Return code is: 501 , ReasonPhrase:HTTPS Required.</p>
  </blockquote>
  
  <p>Services -> Maven Repositories -> Central Repository -> right mouse click on "Central Repository" gives the following information:</p>
  
  <p><a href="https://i.stack.imgur.com/xhZjg.png" rel="noreferrer"><img src="https://i.stack.imgur.com/xhZjg.png" alt="enter image description here"></a></p>
  
  <p>As one can see, the Remote Repository URL is "<a href="http://repo.maven.apache.org/maven2/" rel="noreferrer">http://repo.maven.apache.org/maven2/</a>". I think it should instead be "<a href="https://repo.maven.apache.org/maven2/" rel="noreferrer">https://repo.maven.apache.org/maven2/</a>". 
  However, the problem is that I can't seem to change the Remote Repository URL.</p>
  
  <p>Does anybody know how to change maven's Remote Repository URL in the NetBeans IDE?</p>
  
  <hr>
  
  <p>UPDATE:</p>
  
  <p>Under NetBeans -> Preferences one can see that the maven version used by my NetBeans IDE is Version 3.0.5:</p>
  
  <p><a href="https://i.stack.imgur.com/lidms.png" rel="noreferrer"><img src="https://i.stack.imgur.com/lidms.png" alt="enter image description here"></a> </p>