Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aether-users] Keeping only most current Snapshot version locally

Johannes Dorn wrote:

But when a new version of the artifact is resolved, the old file still
remains in the local repository.

My naive solution to the problem would be to delete old files after an
artifact was resolved.

Aether itself doesn't know when an end application no longer uses a previously resolved file. So yes, using a listener to watch for newly downloaded snapshots and triggering cleanup task is the best option you have.


Benjamin



Back to the top