We are using Nexus to deploy our snapshot artifacts. Our build server deploys them during each build using the following command: mvn deploy. As result on each build the new
If you have the administrator access in Nexus Then,
Login to Nexus.
Browse to Administration.
Go to scheduled Tasks.
You can add the task : Remove Old Snapshots.
Select task type as Remove Snapshots from repository.
You can define Minimum Snapshot count or Snapshot retention as needed.