简体   繁体   English

如何在 artifactory 中维护所需数量的 maven 存储库版本?

[英]How to maintain the required number of maven reposiotry version in artifactory?

I have a maven repository in Jfrog artifactory and I have configured to maintain two latest release version for that repository but the repository contains all the minor (older) version ie more than two version in the repository.我在 Jfrog artifactory中有一个maven存储库,我已配置为该存储库维护两个最新版本,但该存储库包含所有次要(较旧)版本,即存储库中的两个以上版本。

Below are the snippet of configuration(image 1) and number of versions in the repository(image 2) Image 1:以下是配置片段(图片 1)和存储库中的版本数(图片 2)图片 1: 在此处输入图像描述

Image 2图 2 存储库中的版本

  1. Is the configuration is correct?配置是否正确?
  2. If my configuration is correct, how can I trigger a action to deleted the un-required version from the repository ie just to maintain only 2 versions?如果我的配置是正确的,我如何触发一个操作来从存储库中删除不需要的版本,即只维护 2 个版本?

Can anyone please help me on this!谁能帮我解决这个问题!

You configured it to have two SNAPSHOT versions.您将其配置为具有两个 SNAPSHOT 版本。 SNAPSHOT versions are of the form 3.0.21-SNAPSHOT . SNAPSHOT 版本的形式为3.0.21-SNAPSHOT Each new SNAPSHOT version is marked with a timestamp.每个新的 SNAPSHOT 版本都标有时间戳。

The shown versions are release versions.显示的版本是发布版本。 I don't think Artifactory can automatically delete release versions, but you might write a plugin or job that does that.我不认为 Artifactory 可以自动删除发布版本,但您可以编写一个插件或作业来执行此操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM