简体   繁体   English

maven的哪个插件更适合管理发布版本?

[英]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.

相关问题 Maven 发布插件 | 最佳实践 | 直接修改POM中的版本或者修改release.properties文件比较好 - Maven release plugin | Best practice | It is better to modify the version in the POM directly or modify the release.properties file maven发布插件 - 操纵项目发布版本 - maven release plugin - manipulating project release version Maven发布插件使用构建版本命名文件 - Maven release plugin name the files with the build version Maven发布插件:使用SNAPSHOT版本发布 - Maven release plugin : Releasing with a SNAPSHOT version Maven发布插件:指定java编译器版本 - Maven release plugin: specify java compiler version Maven和Java版本设置 - 哪种解决方案更好? - Maven and Java version setting — which solution is better? Maven发布插件-如何更改发布项目的版本 - Maven release plugin - how to bump version of release project Maven Release Plugin - 在发布中跳过快照版本更新:准备步骤 - Maven Release Plugin - Skip snapshot version update in release:prepare step Maven:构建时没有release:plugin,也没有SNAPSHOT-version-number - Maven: Build without the release:plugin and without a SNAPSHOT-version-number 在带有插件的Maven中从Nexus选取最新版本(不是快照版本) - Picking Latest Release (not snapshot version) from Nexus in Maven with Plugin
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM