Maintaining SNAPSHOT Maven dependencies

It looks like Neuxs currently has a configuration for a scheduled task of “Remove Snapshots from Repository” which runs hourly. Related, there is an “Empty Trash” job which runs daily.

Based on https://books.sonatype.com/nexus-book/reference/scheduled-tasks.html, the remove snapshot can only work on a repository level; in this case, our entire “Snapshots” repository at http://mavenrepo.openmrs.org/nexus/content/repositories/snapshots/. We have configured a minimum snapshot count of 1. I do not see any documentation for such a job that can exclude specific snapshots, without moving those specific files to a separate repository altogether.

However, there is also a “Remove Unused Snapshots From Repository” job available, that would restrict only to unused snapshots. I’m not sure how exactly this is measured, or if it would work for this scenario.

Scheduled tasks can be adjusted by any user with the “Nexus Administrator” role, which currently includes: Burke, Daniel, Darius, Fred Chen, Matt Blanchette, Mayank, Rowan Seymour, & Saptarshi.