简体   繁体   English

在回购级别阻止工件覆盖

[英]Blocking artifact overwriting at repo level

I am trying to block overwriting in JFrog Artifactory.我试图阻止 JFrog Artifactory 中的覆盖。 I have a two Maven repos: one for snapshot versions and another for releases, the first one should allow overwriting while the second one doesn't.我有两个 Maven 存储库:一个用于快照版本,另一个用于发布,第一个应该允许覆盖,而第二个则不允许。 As I can see it must be configured at user level ( How can I prevent previously deployed artifacts from being overwritten? ) but I would need to do it at repo level.如我所见,它必须在用户级别进行配置( 如何防止以前部署的工件被覆盖? ),但我需要在回购级别进行配置。 Is there any way to do it?有什么办法吗? Maybe it is possible configuring Maven?也许可以配置 Maven?

There is an option to use Include and Exclude Patterns at the repo level.有一个选项可以在回购级别使用包含和排除模式

The Include Patterns and the Exclude Patterns fields provide a way to filter out specific repositories when trying to resolve the location of different artifacts. Include Patterns 和 Exclude Patterns 字段提供了一种在尝试解析不同工件的位置时过滤掉特定存储库的方法。

In each field you can specify a list of Ant-like patterns to filter in and filter out artifact queries.在每个字段中,您可以指定一个 Ant-like 模式列表来过滤和过滤工件查询。 Filtering works by subtracting the excluded patterns (default is none) from the included patterns (default is all).过滤的工作原理是从包含的模式(默认为全部)中减去排除的模式(默认为无)。

Finally I've implemented the solution based in user permissions.最后,我实现了基于用户权限的解决方案。 It seems to be the only way of doing it and works for me.这似乎是唯一的方法,并且对我有用。

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

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