title: How to bypass corporate firewall/proxy for Maven
body: <p>I have been trying to create a new Maven Project in Eclipse (I am using Windows 10), however when the project is created, it shows:</p>
  
  <pre><code>Errors occurred during the build.
  Errors running builder 'Maven Project Builder' on project 'b'.
  
  Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 
  or one of its dependencies could not be resolved: Failed to read artifact descriptor for 
  org.apache.maven.plugins:maven-resources-plugin:jar:2.6
  </code></pre>
  
  <p>When looking at the <code>POM.xml</code>, it shows..</p>
  
  <p><a href="https://i.stack.imgur.com/3aCUa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3aCUa.png" alt="enter image description here"></a></p>
  
  <p>I tried deleting the <code>.m2</code> folder and <code>Right-click project</code> -> <code>Maven</code> -> <code>Update Project..</code></p>
  
  <p>It shows me..</p>
  
  <p><a href="https://i.stack.imgur.com/FqcGp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FqcGp.png" alt="enter image description here"></a></p>
  
  <p>In one solution from another SO post, it mentions the possibility of being behind a proxy. </p>
  
  <p>However by checking from <a href="http://amibehindaproxy.com/" rel="nofollow noreferrer">http://amibehindaproxy.com/</a> it seems I am not behind a proxy.</p>
  
  <p><a href="https://i.stack.imgur.com/q9JLH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/q9JLH.png" alt="enter image description here"></a></p>
  
  <p>I tried making a Maven - Java application project in NetBeans. It seems to be working without showing any errors. But creating a new Maven project in Eclipse always shows up this error dialog box:</p>
  
  <p><a href="https://i.stack.imgur.com/Uqf6j.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Uqf6j.png" alt="enter image description here"></a></p>
  
  <p>I also create a <code>settings.xml</code> in <code>.m2</code> folder with the following content. Will this help me get pass the firewall/proxy restrictions?</p>
  
  <pre><code> &lt;proxies&gt;
      &lt;proxy&gt;
          &lt;active&gt;true&lt;/active&gt;
          &lt;host&gt;203.126.xxx.xxx&lt;/host&gt;
          &lt;port&gt;8080&lt;/port&gt;
      &lt;/proxy&gt;
  &lt;/proxies&gt;
  </code></pre>
  
  <p>I have been trying for over 6 hours and have been browsing various similar posts in SO, I have resolved other dependency issues but unable to resolve this one.</p>
  
  <p><strong>Que</strong>: So what can I do to create a Maven project without errors from the start? </p>