[
https://issues.apache.org/jira/browse/MCLEAN-54?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14968511#comment-14968511
]
Tibor Digana commented on MCLEAN-54:
------------------------------------
IMHO running mvn clean all the time may not be necessary.
Renaming target/ to sub-folder may blow up the target/ and therefore there must
be a way to delete it in the build run. Maybe async delete would be the way to
go however every build eats a lot of CPU and blocks the disk on creating small
files.
There is an interesting parameter in deploy-plugin deployAtEnd which might be
adopted to clean-plugin in order to delete the orphans.
> Support moving instead of deleting directories
> ----------------------------------------------
>
> Key: MCLEAN-54
> URL: https://issues.apache.org/jira/browse/MCLEAN-54
> Project: Maven Clean Plugin
> Issue Type: Bug
> Affects Versions: 2.5
> Reporter: Leandro de Oliveira
> Fix For: more-investigation
>
> Attachments: MCLEAN-54.patch
>
>
> It'd be helpful if the plugin moved target directories to java.io.tmpdir
> instead of delete them because directory deletion on Windows takes a lot of
> time if there are many small files to delete. A less than ideal workaround is
> described here:
> http://bosy.dailydev.org/2009/02/speed-up-your-maven-build-four-times.html
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)