如何防止以前部署的工件被覆盖?
我们使用 Artifactory 作为我们公司的 Maven 存储库。有没有办法对其进行设置(或设置 Maven),以便在存在具有相同版本号的预先存在的工件时无法将工件部署到存储库?
这样做的原因是为了确保有效的版本不会意外被覆盖。如果某个工件确实需要重新部署,我们的开发人员之一可以使用 Artifactory Web 界面将其删除。然后他们可以部署新副本。
谢谢!
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!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
通过撤销目标存储库上部署用户\组的“删除”权限,可以轻松实现这一点;工件删除和工件重新部署都需要删除权限。
所有用户\组权限均可在 UI 中编辑,位置为管理 -> 安全性 -> 权限。
另请参阅管理权限
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