Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What happens if we reupload the artifact already present in nexus respository?

I am using curl command to manually add artifacts in the nexus repository. What will happen in the case if I reupload the artifact of the same version which is already present in the nexus repo. Does it replace the previous one or not push at all in the repo?

like image 211
Stack Overflow Avatar asked Sep 19 '25 22:09

Stack Overflow


1 Answers

It depends on the settings of the repository.

enter image description here

If the "Deployment policy" is set to "Allow redeploy" then if the artifact reuploaded it will replace the original artifact

If the "Deployment policy" is set to "Disable redeploy" then if the artifact reuploaded it will result in an error.

like image 146
Karthikeyan Vaithilingam Avatar answered Sep 23 '25 09:09

Karthikeyan Vaithilingam