versions icon indicating copy to clipboard operation
versions copied to clipboard

versions:use-latest-versions doesn't set previous releases when allowSnapshot=false

Open chetanddesai opened this issue 7 years ago • 5 comments

I have a use-case where I use-latest-versions where I allowSnapshots on my mainline (which works great) but when I set it to try to swap all the snapshots to releases for my release branch using -DallowSnapshots=false, it won't "go back in versions" to use the latest release version.

Example: pom.xml has 1.1-20170929132713 but I want to have it update to the latest release candidate which is 1.0

Is there a way to get this behavior or is it a new feature?

chetanddesai avatar Sep 29 '17 20:09 chetanddesai

https://github.com/mojohaus/versions-maven-plugin/issues/78

jdileonardo avatar Jan 04 '18 16:01 jdileonardo

Thanks @DiJu519 - I seeallowDowngrade in the update-properties documentation, but not yet in use-latest-versions. http://www.mojohaus.org/versions-maven-plugin/use-latest-versions-mojo.html . Does it work for that as well?

chetanddesai avatar Jan 04 '18 17:01 chetanddesai

Last time i was in the code I did not see it implemented.

jdileonardo avatar Jan 04 '18 17:01 jdileonardo

Hopefully it's not too much effort to use the same strategy for some of the other goals.

chetanddesai avatar Jan 04 '18 17:01 chetanddesai

@jdileonardo I think this one is still an issue - I don't see the allowDowngrade option, can we reopen it?

chetanddesai avatar Nov 04 '21 17:11 chetanddesai

Looking into it.

jarmoniuk avatar Aug 28 '22 09:08 jarmoniuk