jira-importer commented on issue #181: URL: https://github.com/apache/maven-war-plugin/issues/181#issuecomment-2967848328
**[Vsevolod Golovanov](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=vsevolod%20golovanov)** commented In contrast, we're using `optional` in WAR as a way to build different WARs for different customers. ``` <dependency> <groupId>my.company</groupId> <artifactId>ui-module-a</artifactId> <optional>${module-a-excluded}</optional> </dependency> <dependency> <groupId>my.company</groupId> <artifactId>ui-module-b</artifactId> <optional>${module-b-excluded}</optional> </dependency> ... <plugin> <artifactId>maven-war-plugin</artifactId> <configuration> <classifier>${customer-classifier}</classifier> </configuration> </plugin> ``` The parent pom has profiles defining customers and their modules. This mirrors ear filtering: ``` <plugin> <artifactId>maven-ear-plugin</artifactId> <configuration> <classifier>${customer-classifier}</classifier> <modules> <ejbModule> <groupId>my.company</groupId> <artifactId>ejb-module-a</artifactId> <excluded>${module-a-excluded}</excluded> </ejbModule> <ejbModule> <groupId>my.company</groupId> <artifactId>ejb-module-b</artifactId> <excluded>${module-b-excluded}</excluded> </ejbModule> </modules> </configuration> </plugin> ``` I'm unaware of another way to achieve this given this set of properties. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org