The Maven clean lifecycle takes care of eliminating all temporary files from the output directory, including generated source files, compiled classes, and previous JAR files, among other things.
* pre-clean : performs tasks that are necessary prior to actual project cleaning.
* clean : delete all files created by the previous build.
* post-clean : performs tasks that are necessary to finalize project cleaning.