Stack Overflow
Stack Overflow

Reputation: 71

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?

Upvotes: 4

Views: 1681

Answers (1)

seenukarthi
seenukarthi

Reputation: 8644

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.

Upvotes: 8

Related Questions