mojohaus / rpm-maven-plugin

http://www.mojohaus.org/rpm-maven-plugin/
Other
56 stars 48 forks source link

upgrade to SNAPSHOT version during developement #110

Closed yarix closed 5 years ago

yarix commented 5 years ago

Here is my issue with SNAPSHOT using Git+Maven+RPM during development.

assuming i need to fix a bug in version 3_1:

What am i missing? maybe the plugin use epoch for SNAPSHOT builds?

here is example of my yum repo:

yum list available myProject --show-duplicates

myProject.x86_64         6.1.6-SNAPSHOT20190430102710          feature-fixBug01-Artifactory
myProject.x86_64         6.1.6-SNAPSHOT20190430221146          feature-fixBug01-Artifactory
myProject.x86_64         6.1.6-2_1                             Artifactory
myProject.x86_64         6.1.6-3_1                             Artifactory
dantran commented 5 years ago

can you try to set version to 6.1.6-3.1-SNAPSHOT after releasing 6.1.6-3 this way you can upgrade.

yarix commented 5 years ago

thank you @dantran , i assume this trick will work. i tried to stay simple, i preferred not touching the rpm version, letting the plugin do the job. In them Maven pom.xml I define 6.1.6-SNAPSHOT and the CI (Jenkins) replace the SNAPSHOT with version 1,2,3... only on builds that are marked for release (the _1 is added by the plugin). for now, i don't want to touch this mechanism.

In the meantime, i will use the downgrade method in yum: yum downgrade myProject-6.1.6-SNAPSHOT20190430221146

related issues: #30, #55, #92 related reading - https://docs.fedoraproject.org/en-US/packaging-guidelines/Versioning/#_snapshots