Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I prevent previously deployed artifacts from being overwritten?

We use Artifactory for our company's Maven repository. Is there a way to set it up (or set Maven up) so that an artifact can't be deployed to the repository if there is a pre-existing artifact with the same version number?

The reasoning for this is to make sure that valid releases don't accidentally get overwritten. If an artifact really does need to be re-deployed, one of our developers can use the Artifactory web interface to delete it. Then they can deploy the new copy.

Thanks!

like image 846
Jon Onstott Avatar asked Jun 23 '11 22:06

Jon Onstott


1 Answers

This is easily achieved by revoking the "Delete" permission from the deploying users\groups on the target repository; the delete permission is required for both artifact removal and artifact re-deployment.

All user\group permissions are editable within the UI at Admin->Security->Permissions.
Also see Managing Permissions

like image 179
noamt Avatar answered Nov 06 '22 20:11

noamt