I have progressed from this question (
https://coderanch.com/t/679753/Altering-files-created-target-directory#3188261)
I have a
maven project that runs in the following order:
1) maven-war-plugin: exploded
2 ) maven-antrun-plugin - Modifies file in {project.build}/target directory
3)maven-war-plugin:war.
This works and when I look at the modified file in {project.build}/target it has the correct changes. My antrun runs as part of the prepare-package phase, after the war plugin completes its pre-package.
However the war file that is created contains the file before the changes were made - as if its picking it up from somewhere else? Is this expected? My war plugin is set as follows: