I have a POM that creates an assembly (by using the mvn assembly:assembly command). Before assembling my directories, I want filtering to occur on some set of resources.
I can achieve this if I execute: mvn resources:resources assembly:assembly Is there a way to get the resource filtering to occur automatically as part of the assembly step so that I can simply execute: mvn assembly:assembly My POM is attached below: Thanks, Brian Yoffe ---------------------------------------------- <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <parent> <groupId>com.jpmorgan.pat.fi</groupId> <artifactId>fixed-income</artifactId> <version>1.0-SNAPSHOT</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>configuration</artifactId> <packaging>pom</packaging> <name>Pat Fixed Income Packaging</name> <url>http://maven.apache.org</url> <dependencies> <dependency> <groupId>${pom.groupId}</groupId> <artifactId>fi-strategies</artifactId> <version>${pom.version}</version> <scope>runtime</scope> </dependency> </dependencies> <build> <resources> <resource> <directory>src/main/conf/common</directory> <filtering>true</filtering> </resource> <resource> <directory>src/main/conf/${env}</directory> <filtering>true</filtering> </resource> </resources> <filters> <filter>src/main/conf/${env}/filter_default.properties</filter> </filters> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-assembly-plugin</artifactId> <configuration> <finalName>${project.build.finalName}-sit</finalName> <descriptors> <descriptor>src/main/assembly/conf.xml</descriptor> <descriptor>src/main/assembly/bin.xml</descriptor> </descriptors> </configuration> </plugin> </plugins> </build> </project> This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries and affiliates.