title: Maven Archetype generate proxy issue, searching for remote catalog
body: <p>Maven seem to be having a bug related to proxy when fetching archetype from maven's remote catalog.</p>
  
  <p>My computer is behind a proxy server. I am trying to generate a project from maven command line.</p>
  
  <pre><code> D:\test&gt;mvn archetype:generate -DarchetypeArtifactId=scala-archetype-simple -DinteractiveMode=false -DgroupId=com.sparktest -DartifactId=myspark -DarchetypeGroupId=net.alchim31.maven -DarchetypeVersion=1.6 -DarchetypeCatalog=remote -e -X
  
  [DEBUG] Searching for remote catalog: http://repo.maven.apache.org/maven2/archetype-catalog.xml
  
  [DEBUG] Archetype org.apache.maven.archetypes:scala-archetype-simple:1.6 doesn't exist
  org.apache.maven.archetype.downloader.DownloadNotFoundException: 
  Requested org.apache.maven.archetypes:scala-archetype-simple:jar:1.6 download does not exist.
  </code></pre>
  
  <p>Below Eclipse Bugs are related, however the issue seems to be with maven rather than Eclipse. 
  <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=390183#add_comment" rel="nofollow noreferrer">https://bugs.eclipse.org/bugs/show_bug.cgi?id=390183#add_comment</a></p>
  
  <p>Please note there is no issue working on existing maven project. The dependencies get downloaded without any issue once maven proxy is configured in settings.xml. The issue comes when generating a project using archetype:generate and using maven remote archetype-catalog.
  Maven archetype-catelog can be opened in a browser without any issue
  <a href="http://repo.maven.apache.org/maven2/archetype-catalog.xml" rel="nofollow noreferrer">http://repo.maven.apache.org/maven2/archetype-catalog.xml</a></p>