title: Giving arguments to maven resources goal from eclipse
body: <p>I'm using the Maven2 and Tomcat plugins for eclipse for a java project that gets deployed as a Tomcat app. I have several Run Configurations for a different goals, but I have one in particular that does multiple goals in sequence:</p>
  
  <pre><code>clean resources:resources compile war:war tomcat:deploy
  </code></pre>
  
  <p>I wanted one of my resource xml files to have config values specific to the build, for instance a dev-build versus a production-build. The <code>resources:resources</code>step should allow me to set values to {tags} in the xml, and I am able to do this via the command line as it's own step:</p>
  
  <pre><code>&lt;test var="{foo}"&gt;
  </code></pre>
  
  <p>Running <code>mvn resources:resources -Dfoo='bar'</code> produces the following in the target directory</p>
  
  <pre><code>&lt;test var="bar"&gt;
  </code></pre>
  
  <p>In the Run Configuration management gui in eclipse, there are slots for arguments and values, but I can't find the correct combination/incantation of parameters to get the same effect as the command line evocation.</p>
  
  <p>Anyone know how?
  Of course, would also accept "You're doing it wrong," (because I probably am) " Do it like this."</p>
  
  <p>Thanks!</p>