Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Option to exclude the latest version of each artifact from Cleanup Policies #400

Open
beppo-sturmtief opened this issue May 30, 2024 · 1 comment
Assignees

Comments

@beppo-sturmtief
Copy link

In NR OSS, Cleanup Policies are limited to filtering a) name based, b) based on artifact age and c) based on activity (age of last download of the artifact).

This leads into problems with stable artifacts - if one is not rebuild & deployed (and is cached in all local maven repos) for longer than the cleanup policy, the artifact gets deleted and is no longer available from the repo.

This issue is actively preventing me from employing automatic cleanup policies, thereby effectively keeping my repo overgrown and cluttered with outdated snapshot artifacts.

It was reported that a comprehensive feature to adress this in the works for NR PRO, but OSS users are excluded. Also notably, there was a feature in the free version of Nexus 2.

To relieve the issue for OSS users, i propose a minimal solution that also does not compete with the PRO feature: add a boolean option to the cleanup option to never remove the latest version of any artifact selected by the filter settings.

This would imo be a feature of limited scope, but would address the issue of stable artifacts for most non-power users.

See also issue #246 and others.

Would be greatly appreciated!

@nblair
Copy link
Contributor

nblair commented Jun 4, 2024

Thank you @beppo-sturmtief - we'll keep this enhancement idea open to track demand.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants