Did you note this line
[INFO] Copying webapp resources [J:\work\workspace\FocusMVN\src\main\webapp]
What's going on ?
The maven-war-plugin
copy the content of src/main/webapp
(which contains your dev project.properties
) to the war. And while doing this it replace the one just copied by the ant task.
What you can try is to exclude the project.properties
from the fileset copied by the maven-war-plugin (since it was already copied by your ant task.)
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.3</version>
<configuration>
<warSourceExcludes>WEB-INF/project.propterties</warSourceExcludes>
</configuration>
</plugin>