简体   繁体   English

maven 项目中的工件/发布版本在哪里增加

[英]Where to bump artifact/release version in maven projects

So am using git, maven and semantic versioning for artifacts (1.0.0 Snapshot / Release)所以我对工件使用 git、maven 和语义版本控制(1.0.0 快照/发布)

Lets take for example this branching model (develop -> release branch -> master)让我们以这个分支 model 为例(开发 -> 发布分支 -> 主控)

From best practises point of view.从最佳实践的角度来看。 In which branch should I increment artifact version, when should I bump from 1.xx snapshot to 1.xx release.我应该在哪个分支中增加工件版本,什么时候应该从 1.xx 快照升级到 1.xx 版本。 Should 1.xx release version ever get back to develop branch? 1.xx 发布版本是否应该回到开发分支? and then on the next feature branch to change it back to snapshot?然后在下一个功能分支上将其更改回快照?

I am planning to use maven release plugin in the future, but before that, I would like to know the approach.我计划将来使用 maven 发布插件,但在此之前,我想知道方法。 Any ideas?有任何想法吗?

I do this on the release branch as I'm preparing my release.我在准备发布时在发布分支上执行此操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM