I have started to working at a company where they use the buildNumber concept. They open a release branch, with version set to 1.0.2-build1 for example.
The next time they generate the artifact and deploy it, they increment this number, so 1.0.2-build2.
When the code is ready to deploy to production environment, they eliminate the -buildNumber and a new tag is generated.
If we have the version 1.2.0-build7 and version 1.2.0 with the artifacts generated under Jfrog Artifactory, the last version avaiable is 1.2.0 but Maven with artifactory, if I try to use the versions plugin to update the dependency version from my pom.xml, the plugin understand that the last version is 1.2.0-build7 and not the last tag generated previusly.
Do someone know how to deal with this situation?. I´m struggling with it but without success.
Thanks to all!