title: Conditional configuration in maven pom.xml
body: <p>I'd like to ONLY exclude certain files using the maven-war-plugin when the property "skipCompress" is set to true. I thought the following specification might work, but it doesn't. BTW, I can't use a profile to achieve this.  I want to use skipCompress to turn on and off the compression in both development and deployment profiles.</p>
  
  <pre><code>&lt;plugin&gt;
      &lt;artifactId&gt;maven-war-plugin&lt;/artifactId&gt;
      &lt;configuration&gt;
      &lt;if&gt;
          &lt;not&gt;
          &lt;equals arg1="${skipCompress}" arg2 = "true"/&gt;
          &lt;/not&gt;
          &lt;then&gt;
          &lt;warSourceExcludes&gt;**/external/dojo/**/*.js&lt;/warSourceExcludes&gt;
          &lt;/then&gt;
      &lt;/if&gt;
      &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>Thanks,</p>
  
  <p>David</p>