gpt4 book ai didi

maven - Maven可以发布:prepare update snapshot version to the release version in batch mode吗

转载 作者:行者123 更新时间:2023-12-04 03:12:42 27 4
gpt4 key购买 nike

mvn发布:准备

它不断地要求我解决快照依赖性。
有没有一种方法可以在批处理模式下执行此操作,以便maven自动使用关联的发行版。即如果依赖性为1.0.0-SNAPSHOT,它将自动将此依赖性更新为1.0.0版本吗?

[INFO] Checking dependencies and plugins for snapshots ...
There are still some remaining snapshot dependencies.: Do you want to resolve them now? (yes/no) no: : yes
Dependency type to resolve,: specify the selection number ( 0:All 1:Project Dependencies 2:Plugins 3:Reports 4:Extensions ): (0/1/2/3) 1: : 1
Resolve Project Dependency Snapshots.: 'com.my.project' set to release? (yes/no) yes: : yes
What is the next development version? (0.0.2-SNAPSHOT) 0.0.2-SNAPSHOT: : 0.0.2-SNAPSHOT

最佳答案

您可以在发行前通过versions-maven-plugin更新SNAPSHOT。

关于maven - Maven可以发布:prepare update snapshot version to the release version in batch mode吗,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11474976/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com