title: An internal error occurred during: "Retrieving archetypes:". Java heap space when creating new Maven project
body: <p>I am starting to learn Spring, So i am creating to new Maven project in eclipse.</p>
  
  <p>When i am trying to create a new Maven project , then it tries to retrieve archetype and gives the error </p>
  
  <pre><code>"An internal error occurred during: "Retrieving archetypes:"
  Java heap space
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/YiX5u.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/YiX5u.jpg" alt="Error window when creating maven project"></a></p>
  
  <p>Steps that i followed : 
  New -> Maven Project -> use default worksppace location (checked) and click Next -> waiting for retrieving archetype and error occurs.</p>
  
  <p>I have attached the screen shot for reference.</p>
  
  <p>Note : I have been trying to resolve this for hours, searched google and stack exchange, changed -Xmx size to 1024m from 512m in elclipse.ini file and tried to restart the eclipse, but that time eclipse refused to launch.
  Also 
  'Window -> Preferences -> Maven -> Download repository updates index on startup' is NOT enabled in my eclpise as suggested in other answer to similar question in stackoverflow to disable it.</p>
  
  <p>Please help me out with this. </p>