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.
<plugin>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<if>
<not>
<equals arg1="${skipCompress}" arg2 = "true"/>
</not>
<then>
<warSourceExcludes>**/external/dojo/**/*.js</warSourceExcludes>
</then>
</if>
</configuration>
</plugin>
Thanks,
David