在nexus 3.4

时间:2017-07-21 10:09:44

标签: java nexus

我正试图摆脱nexus存储库中的大量旧快照。首先尝试在nexus中设置Remove snapshots from Maven repository任务以保留一个快照并清除超过30天的内容。但是从日志中可以看出:

RemoveSnapshotsTask - Executing removal of snapshots on repository: RepositoryImpl$$EnhancerByGuice$$afd74251{type=hosted, format=maven2, name='snapshots'}
RemoveSnapshotsFacetImpl - Removing snapshots on repository snapshots with configuration: org.sonatype.nexus.repository.maven.tasks.RemoveSnapshotsConfig(1, 30, true, 14)
RemoveSnapshotsFacetImpl - Processing 5541 GAVs found with more than minimum 1 snapshot versions
RemoveSnapshotsFacetImpl - Finished processing snapshots with more than 1 versions created before 2017-06-20T06:43:02.135Z
RemoveSnapshotsFacetImpl - Deleted 0 components from 0 distinct GAVs
RemoveSnapshotsFacetImpl - Processing 0 GAVs found that have already been released and for which the grace period has elapsed
RemoveSnapshotsFacetImpl - Finished processing snapshots with associated releases
RemoveSnapshotsFacetImpl - Updating metadata on repository: snapshots

根本没有删除单个快照。但是有很多快照17.5.106-20161103.155102-1到17.5.251-20170718.203928-1,其中大部分超过30天。

如何摆脱那些?

当然,我可以删除存储库并不时重新创建它 - 但自动清理会更好。

0 个答案:

没有答案