yes, we got a corporate repository with archvia, which cashes dependencies,
so it is not such a pain as waiting very long time when deleting
.m2/repository without having a repository proxy. 

never the less i think that all these cleanup-scripts hanging around (cron
or similar) are just as always a workaround which do not solve the source of
the problem. 
me, at least as a user would like to have solved this memory-size problem
(currently 2GB sized repository is growing larger and larger just because of
snapshots) by maven2 itself.

i think i will go to open a jira issue for that, so setting the number of
snapshots kept in local repository can be configured.


Wayne Fay wrote:
> 
> This is not currently configurable. Most people have a corporate
> repository where they download their artifacts from, and so simply
> deleting ~/.m2 is less painful than if you are just downloading direct
> from the Internet.
> 
> I know people have discussed scripts to clear out their repo (eg find
> latest snapshot and delete the rest) on this list but I don't have a
> link to Nabble for one of them. If you search, you can probably find
> one or more of them. But they may not work on your platform (eg script
> is bash or korn and you're on Windows).
> 
> Wayne
> 
> On 3/19/08, aldana <[EMAIL PROTECTED]> wrote:
>>
>> hi,
>>
>> is it possible to limit the size of local repository? especially keeping
>> all
>> snapshots of a version in my view often is not neccessary. so a setting,
>> where the maximum number of snapshots can be set (others would then be
>> discarded) would be nice.
>>
>> currently we sometimes get very annoying problems that roaming-win xp
>> profiles get crashed because maven local repository takes too much space.
>>
>> the workaround to regularly delete local repository does not seem a good
>> solution to me....
>>
>> do others face similar problems?
>>
>>
>> -----
>> manuel aldana
>> aldana((at))gmx.de
>> homepage: http://www.aldana-online.de
>> --
>> View this message in context:
>> http://www.nabble.com/limit-size-of-local-repository%2C-limit-number-of-snapshots-tp16147475s177p16147475.html
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 


-----
manuel aldana
aldana((at))gmx.de
homepage: http://www.aldana-online.de
-- 
View this message in context: 
http://www.nabble.com/limit-size-of-local-repository%2C-limit-number-of-snapshots-tp16147475s177p16163260.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to