maven need new plugin to maintenance its artifacts repo

As we know, maven use repository to save project artifacts, but maven doesn’t do a well maintenance job on its repository, e.g. my local maven repository size has increased to 1.7G, but most of old version of artifacts inside my local maven repository won’t use by me forever.

My suggestion is: maven should have a new plugin, use algorithm like LRU, has a target like “repository.maintenance”, if I run command below, maven will cleanup repository based on its history records.

$mvn repository.maintenance

你可能感兴趣的:(maven,ant,Google,idea,Go)