I am using maven-antrun-plugin version 1.8 to copy some files to the src/main/resources folder so that it gets included in jar in package phase.

If the execution *phase* of the task defined to copy to resources folder is **validate** everything works fine but if it is **compile/test** the files are copied to src/main/resources folder but are not included in jar