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
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
?
For now I have only a <distributionManagement>
section in my pom.xml
and ID
definitions.
You can change this in Artifactory repository settings. There is a setting Maven Snapshot Version Behavior
. If it is set to unique, it will not overwrite artifacts until the limit of Max Unique Snapshots
is reached. You can change that limit to 1 or set the behavior to Nonunique.
See the documentation here .
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.