简体   繁体   English

如果存储库中提供了用于相同快照版本的发布版本,那么如何停止Maven构建?

[英]How to halt the maven build if a release build for the same snapshot version is available in the repository?

社区中是否有可用的插件,或者我需要构建一个插件?

我为此编写了自己的强制执行器规则,因为找不到“官方”插件或规则。

There's a Maven plugin that allow you to replace -SNAPSHOT versions with the corresponding release version here: https://www.mojohaus.org/versions-maven-plugin/use-releases-mojo.html 有一个Maven插件,可让您在此处用相应的发行版替换-SNAPSHOT版本: https : //www.mojohaus.org/versions-maven-plugin/use-releases-mojo.html

While this does not halt the build, it's a good start if you want to add the functionalilty. 虽然这不会停止构建,但是如果您要添加功能,则是一个好的开始。

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

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