[英]Which plugin of maven is better for manage release version?
For example: maven-release-plugin
prepare perform
requires not having SNAPSHOT dependencies, this breaks the continuous integration in case of not being validated before the release, instead, flatten-maven-plugin
only require -Drevision -Dchangelist scm:tag
for tag the release version and not validate SNAPSHOT dependencies.例如: maven-release-plugin
prepare perform
需要没有 SNAPSHOT 依赖,这会破坏持续集成,以防在发布前没有被验证,相反, flatten-maven-plugin
只需要-Drevision -Dchangelist scm:tag
来标记发布版本而不验证 SNAPSHOT 依赖项。
Having SNAPSHOT dependencies in a release version is always a bad idea.在发布版本中拥有 SNAPSHOT 依赖项总是一个坏主意。 The build becomes non-reproducible.构建变得不可重现。
The Maven Release Plugin offers you a thorough and thought-through release process. Maven 发布插件为您提供了一个彻底和深思熟虑的发布过程。 There are different opinions about some aspects of it, and if you don't like them, you can construct your own way, possibly in your build server (Jenkins) instead of Maven.关于它的某些方面有不同的看法,如果您不喜欢它们,您可以构建自己的方式,可能在您的构建服务器(Jenkins)中而不是 Maven。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.