简体   繁体   中英

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

While this does not halt the build, it's a good start if you want to add the functionalilty.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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