while exporting the project just uncheck the unneeded folder like ".svn" in the project export wizard like this eclipe project export wizard


you could use an svn client to do the trick. for example tortoisesvn let you export a directory without .svn folders and files.

so what you could do is:

  1. export you war
  2. unzip it (a war is a zip file with changed extension)
  3. tortoise-export the directory (remember to check "include unversioned files" cause your .class will probably be unversioned)
  4. zip the new directory and rename it to .war

this is not a good workaround but it saves you from checking every subfolder in your war to see if some .svn has not been removed.


installing the subclipse plugin will make eclipse aware of the svn folders. this also includes ignoring them in a war export.


this seems to be documented in bug 182534 (2007! and still opened).

a custom separate ant script would be needed for now in order to build the exact war.
the internal "export war" eclipse feature is not yet good enough for this scenario.


enter the project properties > resource > resource filters > add... > exclude all > files and folders > all children (recursive) > name matches *.svn > ok.

all .svn files and folders will be ignored, including when you export war files.

Related Query

More Query from same tag