How to set up Cleanup Policies? - Sonatype Nexus Repository - Sonatype Community
How to set up Cleanup Policies?
Post by 1445499792 on Aug 25, 2025
- Version: Sonatype Nexus Repository OSS 3.67.1-01
- Deployment Method: Docker
I need to set up a cleanup policy for Maven Snapshots: I want to clean up those older than 10 days but must retain the latest one.
I set Component Ageto 10, and it did clean up those older than 10 days, but it also deleted the only remaining one, which is not what I want. I need to ensure that the latest one is always retained, no matter what.
Post by mpiggott on Aug 25, 2025
You might want to use the Maven Snapshot Remover as opposed to cleanup - Maven SNAPSHOT Tasks
Post by 1445499792 on Aug 28, 2025
This is what I want, thank you