简体   繁体   中英

Blocking artifact overwriting at repo level

I am trying to block overwriting in 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. 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?

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.

In each field you can specify a list of Ant-like patterns to filter in and filter out artifact queries. 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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