Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
chetanddesai opened this issue Sep 29, 2017 · 6 comments · Fixed by #660
Closed

Comments

@chetanddesai
Copy link

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?

@jdileonardo
Copy link
Contributor

#78

@chetanddesai
Copy link
Author

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?

@jdileonardo
Copy link
Contributor

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

@chetanddesai
Copy link
Author

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

@chetanddesai
Copy link
Author

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

@slachiewicz slachiewicz removed the Stale label Nov 4, 2021
@slachiewicz slachiewicz reopened this Nov 4, 2021
@andrzejj0
Copy link
Contributor

Looking into it.

andrzejj0 added a commit to andrzejj0/versions-maven-plugin that referenced this issue Aug 28, 2022
…f allowSnapshots is false, will optionally downgrade the dependency version if its current version is a snapshot
andrzejj0 added a commit to andrzejj0/versions-maven-plugin that referenced this issue Aug 28, 2022
…f allowSnapshots is false, will optionally downgrade the dependency version if its current version is a snapshot
andrzejj0 added a commit to andrzejj0/versions-maven-plugin that referenced this issue Aug 29, 2022
…f allowSnapshots is false, will optionally downgrade the dependency version if its current version is a snapshot
andrzejj0 added a commit to andrzejj0/versions-maven-plugin that referenced this issue Aug 29, 2022
…f allowSnapshots is false, will optionally downgrade the dependency version if its current version is a snapshot
andrzejj0 added a commit to andrzejj0/versions-maven-plugin that referenced this issue Aug 29, 2022
…f allowSnapshots is false, will optionally downgrade the dependency version if its current version is a snapshot
andrzejj0 added a commit to andrzejj0/versions-maven-plugin that referenced this issue Aug 29, 2022
…f allowSnapshots is false, will optionally downgrade the dependency version if its current version is a snapshot
slawekjaranowski pushed a commit that referenced this issue Aug 29, 2022
…napshots is false, will optionally downgrade the dependency version if its current version is a snapshot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants