Skip to content
New issue

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

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

Already on GitHub? # to your account

versions:update-parent 2.16.2 not respecting range when allowDowngrade is set to true #1060

Closed
max-schaefer-dedalus opened this issue Mar 12, 2024 · 1 comment · Fixed by #1181
Assignees
Labels
Milestone

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

@andrzejj0 andrzejj0 added the bug label Nov 10, 2024
@andrzejj0 andrzejj0 self-assigned this Nov 10, 2024
@andrzejj0
Copy link
Contributor

Reproduced.

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

Successfully merging a pull request may close this issue.

3 participants