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

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.

andrzejj0 added a commit to andrzejj0/versions-maven-plugin that referenced this issue Nov 11, 2024
@andrzejj0 andrzejj0 linked a pull request Nov 11, 2024 that will close this issue
andrzejj0 added a commit to andrzejj0/versions-maven-plugin that referenced this issue Nov 11, 2024
@slawekjaranowski slawekjaranowski added this to the 2.18.0 milestone Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants