delete the 'target' directory after build

Posted by pstanton on Stack Overflow See other posts from Stack Overflow or by pstanton
Published on 2010-05-26T09:33:42Z Indexed on 2010/05/26 10:31 UTC
Read the original article Hit count: 204

Filed under:

hi,

i know this is probably frowned upon by maven lovers, but the whole 'target' directory is a waste of space in the context of our program and it's deployment. we have other build processes responsible for creating the actual deployment and i currently manually delete the target dir after every maven build, so that its contents don't interfere with my file searches etc...

is there a way to delete this dir automatically at the end of a maven build/install?

thanks, p.

© Stack Overflow or respective owner

Related posts about maven