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

No goal should update a version to beyond the compatible Maven #1192

Open
delanym opened this issue Nov 27, 2024 · 3 comments
Open

No goal should update a version to beyond the compatible Maven #1192

delanym opened this issue Nov 27, 2024 · 3 comments

Comments

@delanym
Copy link

delanym commented Nov 27, 2024

The display-plugin-updates goal tells me some plugin updates are available and some are not (because my Maven version is not sufficient.)

[INFO] --- versions:2.17.1:display-plugin-updates (default-cli) @ ponyrides-build ---
[INFO]
[INFO] The following plugin updates are available:
[INFO]   com.github.spotbugs:spotbugs-maven-plugin ...... 4.8.6.4 -> 4.8.6.6
[INFO]   maven-artifact-plugin .............................. 3.5.1 -> 3.5.3
[INFO]   maven-checkstyle-plugin ............................ 3.5.0 -> 3.6.0
[INFO]   maven-dependency-plugin ............................ 3.8.0 -> 3.8.1
[INFO]   maven-javadoc-plugin ............................. 3.10.1 -> 3.11.1
[INFO]   maven-jxr-plugin ................................... 3.5.0 -> 3.6.0
[INFO]   maven-plugin-plugin ........................ 3.15.0 -> 4.0.0-beta-1
[INFO]   maven-project-info-reports-plugin .................. 3.7.0 -> 3.8.0
[INFO]   maven-surefire-plugin .............................. 3.5.1 -> 3.5.2
[INFO]   maven-surefire-report-plugin ....................... 3.5.1 -> 3.5.2
[INFO]   org.codehaus.mojo:exec-maven-plugin ................ 3.4.1 -> 3.5.0
[INFO]   org.codehaus.mojo:versions-maven-plugin .......... 2.17.1 -> 2.18.0
[INFO]   org.owasp:dependency-check-maven ................. 10.0.4 -> 11.1.0
[INFO]   org.pitest:pitest-maven .......................... 1.17.0 -> 1.17.1
[INFO]
[INFO] All plugins have a version specified.
[INFO]
[INFO] Project requires minimum Maven version for build of: 3.9.0
[INFO] Plugins require minimum Maven version of: 3.9.0
[INFO]
[INFO] No plugins require a newer version of Maven than specified by the pom.
[INFO]
[INFO] Require Maven 4.0.0-beta-3 to use the following plugin updates:
[INFO]   maven-clean-plugin .......................... 3.4.0 -> 4.0.0-beta-1
[INFO]   maven-compiler-plugin ...................... 3.13.0 -> 4.0.0-beta-1
[INFO]   maven-deploy-plugin ......................... 3.1.3 -> 4.0.0-beta-1
[INFO]   maven-install-plugin ........................ 3.1.3 -> 4.0.0-beta-1
[INFO]   maven-jar-plugin ............................ 3.4.2 -> 4.0.0-beta-1
[INFO]   maven-resources-plugin ...................... 3.3.1 -> 4.0.0-beta-1
[INFO]   maven-source-plugin ......................... 3.3.1 -> 4.0.0-beta-1

When I follow this up with the update-properties goal the plugin updates all those plugins it said could not be upgraded. This should not happen.

I think its safe to say there's no need even to make this configurable. No plugin should ever be updated to a version beyond compatibility with the current Maven.

@andrzejj0
Copy link
Contributor

Is this a regression? Max version of thr Plugin that it worked as expected?

@delanym
Copy link
Author

delanym commented Nov 27, 2024

I tried with version 2.18.0, 2.14.0 and 2.12.0 and same behaviour - it always updates maven-compiler-plugin to 4.0.0-beta-1

@andrzejj0
Copy link
Contributor

Thanks for a quick response.

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

2 participants