How to stop Maven/Artifactory from keeping Snapshots with timestamps

前端 未结 6 804
Happy的楠姐
Happy的楠姐 2020-12-29 05:25

Due to disk space considerations I\'d like to only ever keep one version of any snapshot in my repository. Rather than keeping multiple versions with timestamp suffixes

6条回答
  •  無奈伤痛
    2020-12-29 06:13

    Artifactory can clean up old unique snapshots. However, we have found unique snapshots to be non-useful for the purpose of tracking down dependencies or rolling-back to a specific version. There are better alternatives for doing this, which are cleaner and more reliable. That is why Artifactory defaults to prefer non-unique snapshots, and this policy can be centrally controlled (which is unique to Artifactory). You can read more about this, as well as the auto-cleanup feature here.

提交回复
热议问题