Maven Svn SCM删除标签
我正在尝试实现一个 Maven 插件,但遇到了 scm 的一些问题。该插件需要删除标签,但我找不到方法。 有人有使用这个 API 的经验吗?
I am trying to implement a maven plugin and faced some problem with scm. The plugin needs to delete a tag, but I could not find a way to do it.
Does anybody have experience with this API?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Maven 中不存在通过 SCM API 删除标签的可能性。如果这是可能的,release:rollback 就已经实现了这样的事情。另一方面,一些 SCM 系统不允许删除标签。
它可能是通过其他 API 实现标签删除的选项(我假设您正在使用 SVN?)您可以直接在插件中使用 SVNKit。 release.properties 的内容为您提供了标签的名称,在发生故障时可以将其删除。
There does not exist such a possibility to delete a tag via the SCM API in Maven. If this would be possible the release:rollback would have already implemented such a thing. On the other hand some SCM systems don't allow deleting of tags.
It might be an option to implement the delteting of the tag via other API's (I assume you are using SVN?) you could use SVNKit directly in your plugin. The contents of the release.properties gives you the name of the tag which can be deleted in case of a failure.