[英]How to deploy and overwrite only one artifact in artifactory
I have a problem with deploying artifacts into artifactory with just one version for now. 我现在只有一个版本将工件部署到工件中时遇到问题。
Currently, if I deploy my artifact via mvn deploy
, always a new version is generated in artifactory eg 目前,如果我通过mvn deploy
部署我的工件,总是会在工件中生成新版本,例如
Commons-0.0.1-20131122.222911-4
Commons-0.0.1-20131122.232912-5
Commons-0.0.1-20131122.242913-6
How is it possible to only deploy ONE version (overwrite existing artifacts) eg Common-0.0.1-SNAPSHOT or a kind of this into artifactory via maven
? 如何只通过maven
部署一个版本(覆盖现有工件),例如Common-0.0.1-SNAPSHOT或者一种这样的神器?
For now I have only a <distributionManagement>
section in my pom.xml
and ID
definitions. 现在我的pom.xml
和ID
定义中只有一个<distributionManagement>
部分。
You can change this in Artifactory repository settings. 您可以在Artifactory存储库设置中更改此设置。 There is a setting Maven Snapshot Version Behavior
. 有一个设置Maven Snapshot Version Behavior
。 If it is set to unique, it will not overwrite artifacts until the limit of Max Unique Snapshots
is reached. 如果将其设置为unique,则在达到Max Unique Snapshots
的限制之前,它不会覆盖工件。 You can change that limit to 1 or set the behavior to Nonunique. 您可以将该限制更改为1或将行为设置为Nonunique。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.