Delete Additional Files Not Exposed to Maven

The Maven Clean Plugin will delete the target directory by default. You may configure it to delete additional directories and files. The following example shows how:


Note: The directory in the fileset is a relative path inside a project, in other words,


is equivalent to:


You could also define file set rules in a parent POM. In this case, the clean plugin adds the subproject basedir to the defined relative path.