title: how to exclude files based on the if-else condition in pom.xml apache maven
body: <p>I want to exclude some files based on the if-else condition in pom.xml file any one of you guys can you assist me 
  here is my pom.xml plugin</p>
  
  <pre><code>&lt;plugin&gt;
  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
  &lt;artifactId&gt;maven-war-plugin&lt;/artifactId&gt;
  &lt;version&gt;2.1&lt;/version&gt;
  &lt;configuration&gt;
      &lt;warSourceExcludes&gt;**extensions/securelistener.config,
      **extensions/https-reencrypt.config,
      **extensions/https-lbsecuritygroup.config,
      **extensions/https-backendsecurity.config,
      **extensions/99_https-instance.config,
      **ebextensions/httpd/conf/**,
      **ebextensions/httpd/conf.d/ssl.conf
      &lt;/warSourceExcludes&gt;
  &lt;/configuration&gt;
  &lt;/plugin&gt; 
  </code></pre>