在构建war文件时,我不想过滤覆盖中的某些文件。例如,如何从覆盖模块 2 中过滤所有 jsp 文件中排除?
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.1-beta-2-SNAPSHOT</version>
<configuration>
<archiveClasses>true</archiveClasses>
<filters>
<filter>src/main/filters/config.properties</filter>
</filters>
<overlays>
<overlay>
<groupId>com.company</groupId>
<artifactId>module1</artifactId>
<filtered>true</filtered>
</overlay>
<overlay>
<groupId>com.company</groupId>
<artifactId>module2</artifactId>
<filtered>true</filtered>
</overlay>
<overlay>
<groupId>com.company</groupId>
<artifactId>module3</artifactId>
<filtered>true</filtered>
</overlay>
</overlays>
</configuration>