Activation in my maven profile is ignored (profile always executed) using file exist
I am using activation based on file exists in my pom.xml. However, my profile is ALWAYS executed, no matter what. Here is the profile description: <profile> <id>copy</id> <activation> <file> <exists>file.xml</exists> </file> </activation> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <version>1.7</version> <executions> <execution> <id>copy-resources</id> <phase>validate</phase> <configuration> <target name="copy and rename file"> <copy file="${basedir}/src/main/resources/application.${env}.properties" tofile="${basedir}/src