我想只在maven-war-plugin中排除某些文件,当属性“skipCompress”设置为true时,我想我可以做这样的事情,但它不适用于我。顺便说一句,我不能使用配置文件来实现这一点,即使我想使用skipCompress在开发和部署配置文件中打开和关闭压缩。maven pom.xml中的条件配置
<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>
感谢,
大卫
你自己给出了答案。使用这种配置文件。 – khmarbaise 2012-04-15 08:50:52