jira-importer commented on issue #212: URL: https://github.com/apache/maven-war-plugin/issues/212#issuecomment-2967853104
**[Edwin Punzalan](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=elpunzalan)** commented This took me a while... heheh You should use this instead for your plugin configuration: ``` <plugins> <plugin> <artifactId>maven-war-plugin</artifactId> <configuration> <warSourceDirectory>${project.build.directory}/filtered-webapp-resources</warSourceDirectory> </configuration> </plugin> </plugins> ``` if you put it in goals, then the war plugin gets executed twice.... One with the correct warSourceDirectory and the other with the unmodified warSourceDirectory (which points to src/main/webapp) and would mostly overwrite the contents of the other since their outputDirectory is the same. If you'll look at the output of your build, you'll see two executions of the war plugin, [war:war] and [war:war{execution: default}] -- 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