Issue
Is it possible to suppress deleting default target directory during mvn clean? Current process deletes entire directory with all its content while I need to keep empty dir on delete.
I guess I will be able to set such configiration by using <artifactId>maven-clean-plugin</artifactId>
, but still there remains the implicit process of the mvn clean which deletes entire directory anyway.
Solution
I assume you can make use of excludeDefaultDirectories: set it to true and manually list the subdirectories you want to purge via filesets. I haven't tested this but it should work. Let me know how it goes.
Answered By - Alex
Answer Checked By - Terry (JavaFixing Volunteer)