title: Maven - How to perform conditional execution
body: <p>Is there a way to perform conditional execution of snippet in pom.xml?
  my requirement is to copy a file/directory to deploy structure based on variable defined in pom.xml... </p>
  
  <p>eg: </p>
  
  <pre><code>&lt; if &gt;
      &lt; equals arg1="package" arg2="package"/&gt;
         &lt; then&gt;
                ....
             &lt; /then&gt;
       &lt; /if&gt;
  </code></pre>
  
  <p>Not sure how can I achieve this!</p>
  
  <p>Any pointers would be highly appreciated.</p>
  
  <p>Thanks,
  SR</p>