[ https://jira.codehaus.org/browse/MNG-3472?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=313164#comment-313164 ]
Eric Dalquist edited comment on MNG-3472 at 11/8/12 9:55 AM: ------------------------------------------------------------- Here is what we are doing on our build server: {code} find /path/to/.m2 -wholename '*SNAPSHOT/*.*' -type f -mtime +1 -print0 | xargs -r -0 rm -v find /path/to/.m2 -type d -empty -print0 | xargs -r -0 rmdir -v {code} That deletes any files in a SNAPSHOT directory older than 1 day and then deletes all empty directories. was (Author: edalquist): Here is what we are doing on our build server: find /path/to/.m2 -wholename '*SNAPSHOT/*.*' -type f -mtime +1 -print0 | xargs -r -0 rm -v find /path/to/.m2 -type d -empty -print0 | xargs -r -0 rmdir -v That deletes any files in a SNAPSHOT directory older than 1 day and then deletes all empty directories. > configuration possibilities to limit size of local repository > ------------------------------------------------------------- > > Key: MNG-3472 > URL: https://jira.codehaus.org/browse/MNG-3472 > Project: Maven 2 & 3 > Issue Type: Improvement > Components: Settings > Affects Versions: 2.0.8 > Reporter: manuel aldana > > it would be great to make repository-size configurable, for instance by > setting the maximum number of downloads of a snapshot-version to be kept. > thus the explosion of local repository size can be reduced. > especially when you are working with many in-house multi-module projects > which are marked as snapshots before released , can increase repository size > significantly. > see mailing-list discussion: > http://www.nabble.com/limit-size-of-local-repository%2C-limit-number-of-snapshots-td16147475s177.html -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira