in my project I have a folder called war
. It is initially empty and it\'s under version control. The folder gets populated by Maven during its package
You will have to use the maven ant plugin & add the task to delete the folder contents only. However why do you need the war file in version control? Every time you build your code base will show that there are some modifications/new files (classes generated) to be checked in. If you are using standard maven conventions the target folder is used for all output.