-
Notifications
You must be signed in to change notification settings - Fork 267
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
allow* parameters not working on display-dependency-updates #299
Comments
Some notes:
|
2.5 years on, relatively new to Maven and really wanting & expecting this to work. And the documentation certainly says that it should. |
Thanks for resurfacing this one, @dougbreaux. Frankly, I have accepted that this just does not work as expected a long time ago. In fact, I had forgotten about this completely. It would still be great to hear feedback from a contributor. Is this considered a bug? Or is it expected behavior? How do we need to adjust our expectations? If it's a bug, would a PR be welcome? I might have another look at this. But I'm not experienced with developing Maven Plugins. I cannot promise to get it right and would certainly need review and feedback. |
- Removed parameter allowAnyUpdates - Added parameter allowIncrementalUpdates - All scope parameters are `true` by default and can be disabled independently of other scope parameters.
After having the same problem here, I took a look at the source code (thanks for pointing to the relevant places, @meeque). The parameter semantics are not really intuitive. In the current version (2.8.1) they work as follows:
IMHO, this doesn't make much sense for semantic versioning. I hacked a version that removes the The fork is available here, in the hope it may be useful: https://github.com/mklinger/versions-maven-plugin |
This issue is still there as of today on version 2.9 |
Having problems due to this issue also. |
What kind of problems are you experiencing exactly, @dmgping?
So, could you please state what dependency updates are not being updated properly and what the pom.xml and the version of the plugin you're using are. |
…Updates, allowMinorUpdates, allowIncrementalUpdates is set to false
The problem I am having is exactly as @meeque described in the original issue description, the allowMajorUpdates flag is ignored when passed to the versions:display-dependency-updates goal. The -DallowMajorUpdates=false flag works when used with the versions:use-latest-versions goal, but I was trying to parse the output from versions:display-dependency-updates to trigger an external upgrade testing script, which should not run for major versions. Maven version: 3.8.1 |
I see the semantics of Please set if to false if you want to also set any of the allow...updates flags. I've created a PR #941 to ignore "allowAnyUpdates". |
Also, please always check against the latest release before reporting a problem. |
…e if any of: allowMajorUpdates, allowMinorUpdates, allowIncrementalUpdates is set to false
Thank you @ajarmoniuk for the clarification, I see the expected results when also providing the -DallowAnyUpdates=false option. |
…e if any of: allowMajorUpdates, allowMinorUpdates, allowIncrementalUpdates is set to false
…e if any of: allowMajorUpdates, allowMinorUpdates, allowIncrementalUpdates is set to false
…sser segments mojohaus#299: allowAnyUpdates should be ignored with a warning message if any of: allowMajorUpdates, allowMinorUpdates, allowIncrementalUpdates is set to false
…s from lesser segments Resolves mojohaus#299: allowAnyUpdates should be ignored with a warning message if any of: allowMajorUpdates, allowMinorUpdates, allowIncrementalUpdates is set to false
…s from lesser segments Resolves mojohaus#299: allowAnyUpdates should be ignored with a warning message if any of: allowMajorUpdates, allowMinorUpdates, allowIncrementalUpdates is set to false
…s from lesser segments Resolves mojohaus#299: allowAnyUpdates should be ignored with a warning message if any of: allowMajorUpdates, allowMinorUpdates, allowIncrementalUpdates is set to false
…s from lesser segments Resolves mojohaus#299: allowAnyUpdates should be ignored with a warning message if any of: allowMajorUpdates, allowMinorUpdates, allowIncrementalUpdates is set to false
…s from lesser segments Resolves mojohaus#299: allowAnyUpdates should be ignored with a warning message if any of: allowMajorUpdates, allowMinorUpdates, allowIncrementalUpdates is set to false
…s from lesser segments Resolves mojohaus#299: allowAnyUpdates should be ignored with a warning message if any of: allowMajorUpdates, allowMinorUpdates, allowIncrementalUpdates is set to false
…s from lesser segments Resolves mojohaus#299: allowAnyUpdates should be ignored with a warning message if any of: allowMajorUpdates, allowMinorUpdates, allowIncrementalUpdates is set to false
…s from lesser segments Resolves mojohaus#299: allowAnyUpdates should be ignored with a warning message if any of: allowMajorUpdates, allowMinorUpdates, allowIncrementalUpdates is set to false
…s from lesser segments Resolves mojohaus#299: allowAnyUpdates should be ignored with a warning message if any of: allowMajorUpdates, allowMinorUpdates, allowIncrementalUpdates is set to false
…s from lesser segments Resolves mojohaus#299: allowAnyUpdates should be ignored with a warning message if any of: allowMajorUpdates, allowMinorUpdates, allowIncrementalUpdates is set to false
…s from lesser segments Resolves mojohaus#299: allowAnyUpdates should be ignored with a warning message if any of: allowMajorUpdates, allowMinorUpdates, allowIncrementalUpdates is set to false
…s from lesser segments Resolves mojohaus#299: allowAnyUpdates should be ignored with a warning message if any of: allowMajorUpdates, allowMinorUpdates, allowIncrementalUpdates is set to false
…s from lesser segments Resolves mojohaus#299: allowAnyUpdates should be ignored with a warning message if any of: allowMajorUpdates, allowMinorUpdates, allowIncrementalUpdates is set to false
…s from lesser segments Resolves mojohaus#299: allowAnyUpdates should be ignored with a warning message if any of: allowMajorUpdates, allowMinorUpdates, allowIncrementalUpdates is set to false
…esser segments Resolves #299: allowAnyUpdates should be ignored with a warning message if any of: allowMajorUpdates, allowMinorUpdates, allowIncrementalUpdates is set to false
I'm trying to use the
versions:display-dependency-updates
goal from the CLI, but forbid major updates. I tried both of the following:In any case, I'm still seeing outputs like the following:
As you can see, the major version changed from 4 to 5, which I would not expect. Instead, was hoping for the following (based on today's versions on Maven Central):
Sorry, if I'm missing something fundamental, or have a typo in the above. I tried hard to get it right, and rule everything out.
Btw, the above behavior is not limited to that specific dependency. Other dependencies are affected, too. Could this be caused by the weird version suffixes that projects such as Spring and Netty are using?
Fyi, some version information:
The text was updated successfully, but these errors were encountered: