title: How to add proxy VM params to all maven calls in IntelliJ IDEA
body: <p>I have IntelliJ IDEA 15 on a system that can only reach out to the internet using a proxy.</p>
  
  <p>Therefore, I can configure Maven->Importing and Maven->Runner settings to include the</p>
  
  <p><code>-DproxyXXXX=YYYY</code></p>
  
  <p>VM options. This works just fine for all the maven goals that I initiate from the IDE</p>
  
  <p>BUT: When I create a new maven project from an <strong>archetype</strong>, IDEA doesn't seem to add those VM options to the maven call that should set up the project according to the archetype.</p>
  
  <p>My question is: How can I configure IntelliJ IDEA 15 for all projects so that it will always add those VM options?</p>
  
  <p>The answer from JJF didn't work.</p>
  
  <p>To clarify: This is what IntelliJ IDEA's maven outputs for a new project with webapp archetype:</p>
  
  <pre><code>"C:\Program Files\Java\jdk1.7.0_79\bin\java" "-Dmaven.home=C:\Program Files
  (x86)\JetBrains\IntelliJ IDEA 15.0.3\plugins\maven\lib\maven3" 
  "-Dclassworlds.conf=C:\Program Files (x86)\JetBrains\IntelliJ IDEA
  15.0.3\plugins\maven\lib\maven3\bin\m2.conf" -Dfile.encoding=UTF-8
  -classpath "C:\Program Files (x86)\JetBrains\IntelliJ IDEA
  15.0.3\plugins\maven\lib\maven3\boot\plexus-classworlds-2.4.jar"
  org.codehaus.classworlds.Launcher -Didea.version=15.0.3
  -DinteractiveMode=false -DgroupId=test3 -DartifactId=test3 -Dversion=1.0-
  SNAPSHOT -DarchetypeGroupId=org.apache.maven.archetypes
  -DarchetypeArtifactId=maven-archetype-webapp -DarchetypeVersion=RELEASE
  org.apache.maven.plugins:maven-archetype-plugin:RELEASE:generate
  </code></pre>
  
  <p>and this should be added automatically:</p>
  
  <pre><code>-DproxySet=true -DproxyHost=xxxxxxxxxxxxxxx -DproxyPort=8080
  </code></pre>