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:update-parent 2.16.2 not respecting range when allowDowngrade is set to true #1060

Open
max-schaefer-dedalus opened this issue Mar 12, 2024 · 0 comments

Comments

@max-schaefer-dedalus
Copy link

max-schaefer-dedalus commented Mar 12, 2024

my project's parent pom is set to

<parent>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>mojo-parent</artifactId>
    <version>70</version>
</parent>

When I invoke
mvn versions:update-parent -DallowDowngrade=false -DparentVersion=[,79-!)

[INFO] --- versions:2.16.2:update-parent (default-cli) @ test-update-parent ---
[INFO] Updating parent from 70 to 78

-> works fine.

However, when I invoke
mvn versions:update-parent -DallowDowngrade=true -DparentVersion=[,79-!)

[INFO] --- versions:2.16.2:update-parent (default-cli) @ test-update-parent ---
[INFO] Updating parent from 78 to 80

i.e. it does not respect the range.

With version 2.11.0 both cases work as expected.
Maybe related to #670

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant