title: how to reference maven properties in other files
body: <p>I have a simple problem (maybe not that simple...) for which I couldn't find a solution. I have created a maven project in eclipse and set a line in the pom like this</p>
  
  <pre><code>&lt;name&gt;myTestProject&lt;/name&gt;
  </code></pre>
  
  <p>When I build the project, a myTestProject.jar is correctly generated. Plus, I want my jar to have input parameters, so I created in the project a .bat and a .sh with the line </p>
  
  <pre><code>"java -jar myTestProject.jar input1 input2 ..."
  </code></pre>
  
  <p>Now, if I want my target name to change along time, in order not to modify the .bat and .sh each time I have changed the lines according to the maven references like this:</p>
  
  <pre><code>"java -jar ${project.name}.jar input1 input2 ..."
  </code></pre>
  
  <p>But this does not work; the files are just copied but not processed on compilation time, hence neither the .bat nor the .sh will run the jar.</p>
  
  <p>Is there a way to make maven process these files and change the tags for the correct values when compiling?</p>
  
  <p>Thanks in advance,</p>
  
  <p>Miguel.</p>