gpt4 book ai didi

maven - 如何配置仅保留快照的N个版本的Maven或Apache Archiva

转载 作者:行者123 更新时间:2023-12-04 18:11:48 25 4
gpt4 key购买 nike

我们的Archiva信息库从不删除旧快照。
那会产生很多垃圾。

是否可以告诉Archiva仅保留N个快照版本?

此致,
基督教。

最佳答案

请仔细阅读http://archiva.apache.org/docs/2.2.0/adminguide/repositories.html

您会发现以下内容

repository purge by days older - the first option for repository purge. Archiva will  check how old the artifact is and if it is older than the set number of days in this field,  then the artifact will be deleted respecting the retention count (see #7) of course. In order to disable the purge by number of days old and set Archiva to purge by retention count, just set the repository purge field to 0. The maximum number of days which can be set here is 1000. See the Repository Purge section below for more details.
repository purge by retention count - the second option for repository purge. When running the repository purge, Archiva will retain only the number of artifacts set for this field for a specific snapshot version. See the Repository Purge section below for more details.
delete released snapshots - specifies whether to remove those snapshot artifacts which already has release versions of it in the repository during repository purge.

关于maven - 如何配置仅保留快照的N个版本的Maven或Apache Archiva,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12315461/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com