title: Maven command line
body: <p>Is it possible to set environmental variables in a build profile as opposed to setting them in the command line?</p>
  
  <p>For instance, I want to enable the debugger when I'm using my test environment (-Denv=test).</p>
  
  <p>I want maven to do this:</p>
  
  <pre><code>export MAVEN_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=4000,server=y,suspend=n"
  </code></pre>
  
  <p>This way, I can quickly attach a debugger without having to type the same repeated line over and over.</p>
  
  <p>I don't believe the  helps me in this case:</p>
  
  <pre><code>&lt;plugin&gt;
  ...
  &lt;!--    Automatically enable the debugger when running Jetty    --&gt;
                      &lt;argLine&gt;-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=4000,server=y,suspend=n&lt;/argLine&gt;
                  &lt;/configuration&gt;
  ...
  &lt;/plugin&gt;
  </code></pre>
  
  <p>Walter</p>